[llvm] 1033289 - Fix unused variable warnings in SIFrameLowering.cpp for release build, NFC

Haojian Wu via llvm-commits llvm-commits at lists.llvm.org
Sat Dec 17 09:25:07 PST 2022


Author: Haojian Wu
Date: 2022-12-17T18:24:44+01:00
New Revision: 1033289a3fe77a0ccb10d67516d8bd870f974497

URL: https://github.com/llvm/llvm-project/commit/1033289a3fe77a0ccb10d67516d8bd870f974497
DIFF: https://github.com/llvm/llvm-project/commit/1033289a3fe77a0ccb10d67516d8bd870f974497.diff

LOG: Fix unused variable warnings in SIFrameLowering.cpp for release build, NFC

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 568213c73a9c..4e82ef17a346 100644
--- a/llvm/lib/Target/AMDGPU/SIFrameLowering.cpp
+++ b/llvm/lib/Target/AMDGPU/SIFrameLowering.cpp
@@ -1185,6 +1185,7 @@ void SIFrameLowering::emitPrologue(MachineFunction &MF,
   }
 
   bool FPSaved = FuncInfo->hasPrologEpilogSGPRSpillEntry(FramePtrReg);
+  (void)FPSaved;
   assert((!HasFP || FPSaved) &&
          "Needed to save FP but didn't save it anywhere");
 
@@ -1194,6 +1195,7 @@ void SIFrameLowering::emitPrologue(MachineFunction &MF,
          "Saved FP but didn't need it");
 
   bool BPSaved = FuncInfo->hasPrologEpilogSGPRSpillEntry(BasePtrReg);
+  (void)BPSaved;
   assert((!HasBP || BPSaved) &&
          "Needed to save BP but didn't save it anywhere");
 


        


More information about the llvm-commits mailing list