From: Fangrui Song Date: Fri, 1 Feb 2019 14:22:02 +0000 (+0000) Subject: [InstCombine] Fix -Wunused-variable when -DLLVM_ENABLE_ASSERTIONS=off X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8b76cd197e5b076c6cb122744c655208d0831e59;p=llvm [InstCombine] Fix -Wunused-variable when -DLLVM_ENABLE_ASSERTIONS=off git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@352871 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/InstCombine/InstCombineCalls.cpp b/lib/Transforms/InstCombine/InstCombineCalls.cpp index 80d1144ee1b..caed651571a 100644 --- a/lib/Transforms/InstCombine/InstCombineCalls.cpp +++ b/lib/Transforms/InstCombine/InstCombineCalls.cpp @@ -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())) {