Use & to do deref coercion for ReadOnlyBodyAndCache

This commit is contained in:
Dylan MacKenzie 2020-03-28 14:54:41 -07:00
parent b641e9e358
commit 538cdef64b
19 changed files with 22 additions and 22 deletions

View file

@ -20,7 +20,7 @@ pub fn non_ssa_locals<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>>(
let mir = fx.mir;
let mut analyzer = LocalAnalyzer::new(fx);
analyzer.visit_body(*mir);
analyzer.visit_body(&mir);
for (local, decl) in mir.local_decls.iter_enumerated() {
let ty = fx.monomorphize(&decl.ty);