diff options
author | Fangrui Song <maskray@google.com> | 2019-02-01 14:22:02 +0000 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2019-02-01 14:22:02 +0000 |
commit | 8495aabec2c3d3d83407cceb5573127d97bc2c80 (patch) | |
tree | 3175184776a4997d192c73ade9c3c8af196811f8 /llvm/lib/Transforms | |
parent | be23a91fcd9870254a8c0f70f8f2cd1b3835f438 (diff) | |
download | bcm5719-llvm-8495aabec2c3d3d83407cceb5573127d97bc2c80.tar.gz bcm5719-llvm-8495aabec2c3d3d83407cceb5573127d97bc2c80.zip |
[InstCombine] Fix -Wunused-variable when -DLLVM_ENABLE_ASSERTIONS=off
llvm-svn: 352871
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r-- | llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp b/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp index 80d1144ee1b..caed651571a 100644 --- a/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp +++ b/llvm/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())) { |