Use & to do deref coercion for ReadOnlyBodyAndCache
This commit is contained in:
parent
b641e9e358
commit
538cdef64b
19 changed files with 22 additions and 22 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue