AMDGPU: Fix unused variable in release build

llvm-svn: 365378
This commit is contained in:
Matt Arsenault 2019-07-08 19:47:42 +00:00
parent 4ce376cedc
commit 8561844321
1 changed files with 3 additions and 3 deletions

View File

@ -848,10 +848,10 @@ void SIFrameLowering::emitEpilogue(MachineFunction &MF,
if (FuncInfo->FramePointerSaveIndex) {
const int FI = FuncInfo->FramePointerSaveIndex.getValue();
const MachineFrameInfo &MFI = MF.getFrameInfo();
assert(!MFI.isDeadObjectIndex(FI));
assert(MFI.getStackID(FI) == TargetStackID::SGPRSpill);
assert(!MF.getFrameInfo().isDeadObjectIndex(FI) &&
MF.getFrameInfo().getStackID(FI) == TargetStackID::SGPRSpill);
ArrayRef<SIMachineFunctionInfo::SpilledReg> Spill
= FuncInfo->getSGPRToVGPRSpills(FI);
assert(Spill.size() == 1);