[llvm] b3876ef - Silence -Wunused-variable in NDEBUG mode

Dmitri Gribenko via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 6 07:13:41 PDT 2020


Author: Dmitri Gribenko
Date: 2020-10-06T16:02:17+02:00
New Revision: b3876ef49093b17555ae058eb87bb9c70a525c49

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

LOG: Silence -Wunused-variable in NDEBUG mode

Added: 
    

Modified: 
    llvm/lib/CodeGen/StackMaps.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/StackMaps.cpp b/llvm/lib/CodeGen/StackMaps.cpp
index bdcadab0df08..a5bad76ca202 100644
--- a/llvm/lib/CodeGen/StackMaps.cpp
+++ b/llvm/lib/CodeGen/StackMaps.cpp
@@ -409,6 +409,7 @@ void StackMaps::parseStatepointOpers(const MachineInstr &MI,
 
     SmallVector<std::pair<unsigned, unsigned>, 8> GCPairs;
     unsigned NumGCPairs = SO.getGCPointerMap(GCPairs);
+    (void)NumGCPairs;
     LLVM_DEBUG(dbgs() << "NumGCPairs = " << NumGCPairs << "\n");
 
     auto MOB = MI.operands_begin();


        


More information about the llvm-commits mailing list