AMDGPU: Assert SPAdj is 0

llvm-svn: 364473
This commit is contained in:
Matt Arsenault 2019-06-26 20:56:18 +00:00
parent 47345534aa
commit c0cad98363
1 changed files with 2 additions and 0 deletions

View File

@ -1060,6 +1060,8 @@ void SIRegisterInfo::eliminateFrameIndex(MachineBasicBlock::iterator MI,
const SIInstrInfo *TII = ST.getInstrInfo();
DebugLoc DL = MI->getDebugLoc();
assert(SPAdj == 0 && "unhandled SP adjustment in call sequence?");
MachineOperand &FIOp = MI->getOperand(FIOperandNum);
int Index = MI->getOperand(FIOperandNum).getIndex();