Convert &mut to & since the reference didn't need to be mutable
This commit is contained in:
parent
66279d12f9
commit
c8c266a0fb
@ -17,7 +17,7 @@
|
||||
use crate::traits::*;
|
||||
|
||||
pub fn non_ssa_locals<'a, 'b, 'c, 'tcx, Bx: BuilderMethods<'a, 'tcx>>(
|
||||
fx: &mut FunctionCx<'a, 'b, 'tcx, Bx>,
|
||||
fx: &FunctionCx<'a, 'b, 'tcx, Bx>,
|
||||
mir: &'c mut BodyCache<&'b Body<'tcx>>,
|
||||
) -> BitSet<mir::Local> {
|
||||
let mut analyzer = LocalAnalyzer::new(fx, mir);
|
||||
|
@ -174,7 +174,7 @@ pub fn codegen_mir<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>>(
|
||||
per_local_var_debug_info: debuginfo::per_local_var_debug_info(cx.tcx(), mir),
|
||||
};
|
||||
|
||||
let memory_locals = analyze::non_ssa_locals(&mut fx, &mut mir);
|
||||
let memory_locals = analyze::non_ssa_locals(&fx, &mut mir);
|
||||
|
||||
// Allocate variable and temp allocas
|
||||
fx.locals = {
|
||||
|
Loading…
Reference in New Issue
Block a user