Skip to content

Commit

Permalink
Fix a bug in the inliner
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Sep 6, 2017
1 parent f83d20e commit 02fb1b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/librustc_mir/transform/inline.rs
Expand Up @@ -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,
Expand Down

0 comments on commit 02fb1b0

Please sign in to comment.