[llvm] r367423 - [DivRemPairs] Fixup DNDEBUG build - variable is only used in assertion

Roman Lebedev via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 31 05:26:37 PDT 2019


Author: lebedevri
Date: Wed Jul 31 05:26:37 2019
New Revision: 367423

URL: http://llvm.org/viewvc/llvm-project?rev=367423&view=rev
Log:
[DivRemPairs] Fixup DNDEBUG build - variable is only used in assertion

Modified:
    llvm/trunk/lib/Transforms/Scalar/DivRemPairs.cpp

Modified: llvm/trunk/lib/Transforms/Scalar/DivRemPairs.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/DivRemPairs.cpp?rev=367423&r1=367422&r2=367423&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/DivRemPairs.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/DivRemPairs.cpp Wed Jul 31 05:26:37 2019
@@ -195,6 +195,7 @@ static bool optimizeDivRem(Function &F,
     auto &RemInst = E.RemInst;
 
     const bool RemOriginallyWasInExpandedForm = E.isRemExpanded();
+    (void)RemOriginallyWasInExpandedForm; // suppress unused variable warning
 
     if (HasDivRemOp && E.isRemExpanded()) {
       // The target supports div+rem but the rem is expanded.




More information about the llvm-commits mailing list