[llvm] fd9187f - [NFC] Silence variables unused in release builds

Jordan Rupprecht via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 14 08:36:22 PDT 2020


Author: Jordan Rupprecht
Date: 2020-08-14T08:35:58-07:00
New Revision: fd9187f7469796ad467f9ff519554390491eea99

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

LOG: [NFC] Silence variables unused in release builds

Added: 
    

Modified: 
    llvm/lib/CodeGen/FixupStatepointCallerSaved.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/FixupStatepointCallerSaved.cpp b/llvm/lib/CodeGen/FixupStatepointCallerSaved.cpp
index a92968fa1cd80..6d31097778ca9 100644
--- a/llvm/lib/CodeGen/FixupStatepointCallerSaved.cpp
+++ b/llvm/lib/CodeGen/FixupStatepointCallerSaved.cpp
@@ -224,6 +224,7 @@ class RegReloadCache {
   void recordReload(Register Reg, int FI, const MachineBasicBlock *MBB) {
     RegSlotPair RSP(Reg, FI);
     auto Res = Reloads[MBB].insert(RSP);
+    (void)Res;
     assert(Res.second && "reload already exists");
   }
 
@@ -475,6 +476,7 @@ class StatepointState {
     TII.loadRegFromStackSlot(*MBB, It, Reg, FI, RC, &TRI);
     MachineInstr *Reload = It->getPrevNode();
     int Dummy = 0;
+    (void)Dummy;
     assert(TII.isLoadFromStackSlot(*Reload, Dummy) == Reg);
     assert(Dummy == FI);
     MBB->remove(Reload);


        


More information about the llvm-commits mailing list