[llvm] r352871 - [InstCombine] Fix -Wunused-variable when -DLLVM_ENABLE_ASSERTIONS=off

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 1 06:22:02 PST 2019


Author: maskray
Date: Fri Feb  1 06:22:02 2019
New Revision: 352871

URL: http://llvm.org/viewvc/llvm-project?rev=352871&view=rev
Log:
[InstCombine] Fix -Wunused-variable when -DLLVM_ENABLE_ASSERTIONS=off

Modified:
    llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp

Modified: llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp?rev=352871&r1=352870&r2=352871&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp (original)
+++ llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp Fri Feb  1 06:22:02 2019
@@ -761,6 +761,7 @@ static Value *simplifyX86addcarry(const
   assert(RetTy->getStructElementType(0)->isIntegerTy(8) &&
          RetTy->getStructElementType(1) == OpTy && OpTy == Op2->getType() &&
          "Unexpected types for x86 addcarry");
+  (void)RetTy;
 
   // If carry-in is zero, this is just an unsigned add with overflow.
   if (match(CarryIn, m_ZeroInt())) {




More information about the llvm-commits mailing list