summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2014-05-27 09:55:37 +0000
committerDaniel Jasper <djasper@google.com>2014-05-27 09:55:37 +0000
commit73458c95ac7e4c6a1cb24166030ecce65ed33101 (patch)
treeff9b47ada6dd4dff0d01ab66b93999110be4f16e /llvm/lib/Transforms
parent2af0a91cc4125b4850a2ccca91e99c2ca64acb6a (diff)
downloadbcm5719-llvm-73458c95ac7e4c6a1cb24166030ecce65ed33101.tar.gz
bcm5719-llvm-73458c95ac7e4c6a1cb24166030ecce65ed33101.zip
Fix bad assert.
llvm-svn: 209648
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp b/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
index a0819fdfc82..dda585294fa 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
@@ -735,7 +735,8 @@ Instruction *InstCombiner::visitCallInst(CallInst &CI) {
auto EltTy = SelectorType->getElementType();
unsigned Size = SelectorType->getNumElements();
unsigned BitWidth = EltTy->isFloatTy() ? 32 : (EltTy->isDoubleTy() ? 64 : EltTy->getIntegerBitWidth());
- assert(BitWidth == 64 || BitWidth == 32 || BitWidth == 8 && "Wrong arguments for variable blend intrinsic");
+ assert((BitWidth == 64 || BitWidth == 32 || BitWidth == 8) &&
+ "Wrong arguments for variable blend intrinsic");
SmallVector<Constant*, 32> Selectors;
for (unsigned I = 0; I < Size; ++I) {
// The intrinsics only read the top bit
OpenPOWER on IntegriCloud