[llvm] r365378 - AMDGPU: Fix unused variable in release build
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 8 12:47:42 PDT 2019
Author: arsenm
Date: Mon Jul 8 12:47:42 2019
New Revision: 365378
URL: http://llvm.org/viewvc/llvm-project?rev=365378&view=rev
Log:
AMDGPU: Fix unused variable in release build
Modified:
llvm/trunk/lib/Target/AMDGPU/SIFrameLowering.cpp
Modified: llvm/trunk/lib/Target/AMDGPU/SIFrameLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AMDGPU/SIFrameLowering.cpp?rev=365378&r1=365377&r2=365378&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AMDGPU/SIFrameLowering.cpp (original)
+++ llvm/trunk/lib/Target/AMDGPU/SIFrameLowering.cpp Mon Jul 8 12:47:42 2019
@@ -848,10 +848,10 @@ void SIFrameLowering::emitEpilogue(Machi
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);
More information about the llvm-commits
mailing list