aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/TargetLoweringBase.cpp
diff options
context:
space:
mode:
authorDenis Antrushin <dantrushin@gmail.com>2020-06-05 15:52:14 +0300
committerDenis Antrushin <dantrushin@gmail.com>2020-06-05 15:53:09 +0300
commitdae64d8f421c96288cd8cf1acc31ea57a10d4170 (patch)
treee186761cf425b24e9fd7616e27e752c4fd77a2e8 /llvm/lib/CodeGen/TargetLoweringBase.cpp
parent247e185dd51261c8b8b7f572a3fa64c001e9d2d4 (diff)
downloadllvm-dae64d8f421c96288cd8cf1acc31ea57a10d4170.zip
llvm-dae64d8f421c96288cd8cf1acc31ea57a10d4170.tar.gz
llvm-dae64d8f421c96288cd8cf1acc31ea57a10d4170.tar.bz2
Fix build breakage caused by 66a1b83bf93ec46f6d7a06c47d5981ae154f9ea0
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringBase.cpp')
-rw-r--r--llvm/lib/CodeGen/TargetLoweringBase.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringBase.cpp b/llvm/lib/CodeGen/TargetLoweringBase.cpp
index 41cfa99..3c8fc5a 100644
--- a/llvm/lib/CodeGen/TargetLoweringBase.cpp
+++ b/llvm/lib/CodeGen/TargetLoweringBase.cpp
@@ -1034,7 +1034,7 @@ TargetLoweringBase::emitPatchPoint(MachineInstr &InitialMI,
for (auto &MO : MI->operands()) {
if (!MO.isFI()) {
- MIB.add(MI->getOperand(OperIdx));
+ MIB.add(MO);
continue;
}
@@ -1051,13 +1051,13 @@ TargetLoweringBase::emitPatchPoint(MachineInstr &InitialMI,
assert(MI->getOpcode() == TargetOpcode::STATEPOINT && "sanity");
MIB.addImm(StackMaps::IndirectMemRefOp);
MIB.addImm(MFI.getObjectSize(FI));
- MIB.add(MI->getOperand(OperIdx));
+ MIB.add(MO);
MIB.addImm(0);
} else {
// direct-mem-ref tag, #FI, offset.
// Used by patchpoint, and direct alloca arguments to statepoints
MIB.addImm(StackMaps::DirectMemRefOp);
- MIB.add(MI->getOperand(OperIdx));
+ MIB.add(MO);
MIB.addImm(0);
}