Skip to content

Commit

Permalink
Fix buildbot error in SIRegisterInfo.cpp.
Browse files Browse the repository at this point in the history
llvm-svn: 375373
  • Loading branch information
irishrover committed Oct 20, 2019
1 parent c08666a commit 5fa36e4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions llvm/lib/Target/AMDGPU/SIRegisterInfo.cpp
Expand Up @@ -376,9 +376,6 @@ void SIRegisterInfo::materializeFrameBaseRegister(MachineBasicBlock *MBB,

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
Expand All @@ -395,6 +392,10 @@ void SIRegisterInfo::resolveFrameIndex(MachineInstr &MI, unsigned BaseReg,
#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() ==
Expand Down

0 comments on commit 5fa36e4

Please sign in to comment.