From 8b76cd197e5b076c6cb122744c655208d0831e59 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Fri, 1 Feb 2019 14:22:02 +0000 Subject: [PATCH] [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 --- lib/Transforms/InstCombine/InstCombineCalls.cpp | 1 + 1 file changed, 1 insertion(+) 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())) { -- 2.40.0