[llvm] r374372 - Fix assertions disabled builds after rL374367
Kadir Cetinkaya via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 10 09:04:45 PDT 2019
Author: kadircet
Date: Thu Oct 10 09:04:45 2019
New Revision: 374372
URL: http://llvm.org/viewvc/llvm-project?rev=374372&view=rev
Log:
Fix assertions disabled builds after rL374367
Modified:
llvm/trunk/lib/Target/BPF/BPFMISimplifyPatchable.cpp
Modified: llvm/trunk/lib/Target/BPF/BPFMISimplifyPatchable.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/BPF/BPFMISimplifyPatchable.cpp?rev=374372&r1=374371&r2=374372&view=diff
==============================================================================
--- llvm/trunk/lib/Target/BPF/BPFMISimplifyPatchable.cpp (original)
+++ llvm/trunk/lib/Target/BPF/BPFMISimplifyPatchable.cpp Thu Oct 10 09:04:45 2019
@@ -98,7 +98,6 @@ bool BPFMISimplifyPatchable::removeLD()
Register DstReg = MI.getOperand(0).getReg();
Register SrcReg = MI.getOperand(1).getReg();
- int64_t ImmVal = MI.getOperand(2).getImm();
MachineInstr *DefInst = MRI->getUniqueVRegDef(SrcReg);
if (!DefInst)
@@ -114,7 +113,7 @@ bool BPFMISimplifyPatchable::removeLD()
// Global variables representing structure offset or
// patchable extern globals.
if (GVar->hasAttribute(BPFCoreSharedInfo::AmaAttr)) {
- assert(ImmVal == 0);
+ assert(MI.getOperand(2).getImm() == 0);
IsCandidate = true;
}
}
More information about the llvm-commits
mailing list