Fix a release+noasserts werror for unused variable.
authorEric Christopher <echristo@gmail.com>
Tue, 12 May 2020 03:02:54 +0000 (20:02 -0700)
committerEric Christopher <echristo@gmail.com>
Tue, 12 May 2020 03:03:23 +0000 (20:03 -0700)
llvm/lib/Target/AMDGPU/SIFrameLowering.cpp

index eb125d7..f4db9d2 100644 (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);