Convert &mut to & since the reference didn't need to be mutable

This commit is contained in:
Paul Daniel Faria 2019-10-14 01:48:32 -04:00
parent 66279d12f9
commit c8c266a0fb
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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 = {