machinst: Steal the used/defs Sets when emitting a call in ABICall;

This commit is contained in:
Benjamin Bouvier
2020-05-06 19:10:24 +02:00
parent 19d8a7f1fb
commit 528d3c1355
3 changed files with 8 additions and 4 deletions

View File

@@ -1263,7 +1263,7 @@ pub(crate) fn lower_insn_to_regs<C: LowerCtx<I = Inst>>(ctx: &mut C, insn: IRIns
Opcode::Call | Opcode::CallIndirect => {
let loc = ctx.srcloc(insn);
let (abi, inputs) = match op {
let (mut abi, inputs) = match op {
Opcode::Call => {
let (extname, dist) = ctx.call_target(insn).unwrap();
let extname = extname.clone();