Fix a bug in the inliner

This commit is contained in:
Oliver Schneider 2017-09-06 10:33:53 +02:00 committed by GitHub
parent f83d20eff7
commit 02fb1b0b72

View File

@ -616,8 +616,9 @@ impl<'a, 'tcx> MutVisitor<'tcx> for Integrator<'a, 'tcx> {
Operand::Consume(Lvalue::Local(l)) => *local = l,
ref op => bug!("Arg operand `{:?}` is {:?}, not local", idx, op)
}
} else {
*local = self.local_map[Local::new(idx - self.args.len())];
}
*local = self.local_map[Local::new(idx - self.args.len())];
}
fn visit_lvalue(&mut self,