Fix a bug in the inliner
This commit is contained in:
parent
f83d20eff7
commit
02fb1b0b72
@ -616,9 +616,10 @@ impl<'a, 'tcx> MutVisitor<'tcx> for Integrator<'a, 'tcx> {
|
|||||||
Operand::Consume(Lvalue::Local(l)) => *local = l,
|
Operand::Consume(Lvalue::Local(l)) => *local = l,
|
||||||
ref op => bug!("Arg operand `{:?}` is {:?}, not local", idx, op)
|
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,
|
fn visit_lvalue(&mut self,
|
||||||
lvalue: &mut Lvalue<'tcx>,
|
lvalue: &mut Lvalue<'tcx>,
|
||||||
|
Loading…
Reference in New Issue
Block a user