]> granicus.if.org Git - llvm/commitdiff
[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)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@352871 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/InstCombine/InstCombineCalls.cpp

index 80d1144ee1bbd4732a766874c9404ca0968d1aeb..caed651571a635827f0d304fd9e430cbc8c29a4f 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())) {