[llvm] 5d7ff0d - Fix an unused warning in release build

Dmitri Gribenko via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 20 02:29:58 PDT 2022


Author: Dmitri Gribenko
Date: 2022-09-20T11:29:39+02:00
New Revision: 5d7ff0d87cab93b62468aba15c67addf6053a24c

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

LOG: Fix an unused warning in release build

Added: 
    

Modified: 
    llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp b/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
index 71740b0d0e3d..959ce9b2b14f 100644
--- a/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
+++ b/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
@@ -6780,6 +6780,7 @@ static bool ReduceLoopStrength(Loop *L, IVUsers &IU, ScalarEvolution &SE,
       PHINode *ToFold = CanFoldTerminatingCondition->first;
       PHINode *ToHelpFold = CanFoldTerminatingCondition->second;
 
+      (void)ToFold;
       LLVM_DEBUG(dbgs() << "To fold phi-node:\n"
                         << *ToFold << "\n"
                         << "New term-cond phi-node:\n"


        


More information about the llvm-commits mailing list