[InstCombine] Fix -Wunused-variable when -DLLVM_ENABLE_ASSERTIONS=off
authorFangrui Song <maskray@google.com>
Fri, 1 Feb 2019 14:22:02 +0000 (14:22 +0000)
committerFangrui Song <maskray@google.com>
Fri, 1 Feb 2019 14:22:02 +0000 (14:22 +0000)
llvm-svn: 352871

llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp

index 80d1144..caed651 100644 (file)
@@ -761,6 +761,7 @@ static Value *simplifyX86addcarry(const IntrinsicInst &II,
   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())) {