[llvm] 59a299c - Fix a release+noasserts werror for unused variable.
Eric Christopher via llvm-commits
llvm-commits at lists.llvm.org
Mon May 11 20:03:50 PDT 2020
Author: Eric Christopher
Date: 2020-05-11T20:03:23-07:00
New Revision: 59a299cbb303b23fb26992bcae0b32294b1d45f2
URL: https://github.com/llvm/llvm-project/commit/59a299cbb303b23fb26992bcae0b32294b1d45f2
DIFF: https://github.com/llvm/llvm-project/commit/59a299cbb303b23fb26992bcae0b32294b1d45f2.diff
LOG: Fix a release+noasserts werror for unused variable.
Added:
Modified:
llvm/lib/Target/AMDGPU/SIFrameLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AMDGPU/SIFrameLowering.cpp b/llvm/lib/Target/AMDGPU/SIFrameLowering.cpp
index eb125d7233ed..f4db9d249889 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);
More information about the llvm-commits
mailing list