[llvm] r375373 - Fix buildbot error in SIRegisterInfo.cpp.
Zinovy Nis via llvm-commits
llvm-commits at lists.llvm.org
Sun Oct 20 13:01:16 PDT 2019
Author: zinovy.nis
Date: Sun Oct 20 13:01:16 2019
New Revision: 375373
URL: http://llvm.org/viewvc/llvm-project?rev=375373&view=rev
Log:
Fix buildbot error in SIRegisterInfo.cpp.
Modified:
llvm/trunk/lib/Target/AMDGPU/SIRegisterInfo.cpp
Modified: llvm/trunk/lib/Target/AMDGPU/SIRegisterInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AMDGPU/SIRegisterInfo.cpp?rev=375373&r1=375372&r2=375373&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AMDGPU/SIRegisterInfo.cpp (original)
+++ llvm/trunk/lib/Target/AMDGPU/SIRegisterInfo.cpp Sun Oct 20 13:01:16 2019
@@ -376,9 +376,6 @@ void SIRegisterInfo::materializeFrameBas
void SIRegisterInfo::resolveFrameIndex(MachineInstr &MI, unsigned BaseReg,
int64_t Offset) const {
-
- MachineBasicBlock *MBB = MI.getParent();
- MachineFunction *MF = MBB->getParent();
const SIInstrInfo *TII = ST.getInstrInfo();
#ifndef NDEBUG
@@ -395,6 +392,10 @@ void SIRegisterInfo::resolveFrameIndex(M
#endif
MachineOperand *FIOp = TII->getNamedOperand(MI, AMDGPU::OpName::vaddr);
+#ifndef NDEBUG
+ MachineBasicBlock *MBB = MI.getParent();
+ MachineFunction *MF = MBB->getParent();
+#endif
assert(FIOp && FIOp->isFI() && "frame index must be address operand");
assert(TII->isMUBUF(MI));
assert(TII->getNamedOperand(MI, AMDGPU::OpName::soffset)->getReg() ==
More information about the llvm-commits
mailing list