From 59a299cbb303b23fb26992bcae0b32294b1d45f2 Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Mon, 11 May 2020 20:02:54 -0700 Subject: [PATCH] Fix a release+noasserts werror for unused variable. --- llvm/lib/Target/AMDGPU/SIFrameLowering.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/llvm/lib/Target/AMDGPU/SIFrameLowering.cpp b/llvm/lib/Target/AMDGPU/SIFrameLowering.cpp index eb125d7..f4db9d2 100644 --- a/llvm/lib/Target/AMDGPU/SIFrameLowering.cpp +++ b/llvm/lib/Target/AMDGPU/SIFrameLowering.cpp @@ -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); -- 2.7.4