Fix a release+noasserts werror for unused variable.

This commit is contained in:
Eric Christopher 2020-05-11 20:02:54 -07:00
parent eb81de2de4
commit 59a299cbb3
1 changed files with 1 additions and 2 deletions

View File

@ -696,8 +696,7 @@ void SIFrameLowering::emitPrologue(MachineFunction &MF,
}
if (HasFPSaveIndex && SpillFPToMemory) {
const int FI = FuncInfo->FramePointerSaveIndex.getValue();
assert(!MFI.isDeadObjectIndex(FI));
assert(!MFI.isDeadObjectIndex(FuncInfo->FramePointerSaveIndex.getValue()));
if (!ScratchExecCopy)
ScratchExecCopy = buildScratchExecCopy(LiveRegs, MF, MBB, MBBI, true);