aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineFunction.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineFunction.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp
index 2435873..a0e2043 100644
--- a/llvm/lib/CodeGen/MachineFunction.cpp
+++ b/llvm/lib/CodeGen/MachineFunction.cpp
@@ -1086,8 +1086,7 @@ auto MachineFunction::salvageCopySSAImpl(MachineInstr &MI)
for (auto &MO : Inst->operands()) {
if (!MO.isReg() || !MO.isDef() || MO.getReg() != State.first)
continue;
- return ApplySubregisters(
- {Inst->getDebugInstrNum(), Inst->getOperandNo(&MO)});
+ return ApplySubregisters({Inst->getDebugInstrNum(), MO.getOperandNo()});
}
llvm_unreachable("Vreg def with no corresponding operand?");
@@ -1109,7 +1108,7 @@ auto MachineFunction::salvageCopySSAImpl(MachineInstr &MI)
continue;
return ApplySubregisters(
- {ToExamine.getDebugInstrNum(), ToExamine.getOperandNo(&MO)});
+ {ToExamine.getDebugInstrNum(), MO.getOperandNo()});
}
}