[llvm] dae64d8 - Fix build breakage caused by 66a1b83bf93ec46f6d7a06c47d5981ae154f9ea0

Denis Antrushin via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 5 05:53:46 PDT 2020


Author: Denis Antrushin
Date: 2020-06-05T15:53:09+03:00
New Revision: dae64d8f421c96288cd8cf1acc31ea57a10d4170

URL: https://github.com/llvm/llvm-project/commit/dae64d8f421c96288cd8cf1acc31ea57a10d4170
DIFF: https://github.com/llvm/llvm-project/commit/dae64d8f421c96288cd8cf1acc31ea57a10d4170.diff

LOG: Fix build breakage caused by 66a1b83bf93ec46f6d7a06c47d5981ae154f9ea0

Added: 
    

Modified: 
    llvm/lib/CodeGen/TargetLoweringBase.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/TargetLoweringBase.cpp b/llvm/lib/CodeGen/TargetLoweringBase.cpp
index 41cfa99febbc..3c8fc5a7e05b 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);
     }
 


        


More information about the llvm-commits mailing list