diff options
author | Daniel Jasper <djasper@google.com> | 2014-05-27 09:55:37 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2014-05-27 09:55:37 +0000 |
commit | ae85c73d4af578822bb957d94d6385d73ff57b3b (patch) | |
tree | 90b08c016d27e988d8972428d63636551f668a28 /lib/Transforms | |
parent | 9bbb4066f8fc2b53594f0c47adf0843756e84aea (diff) | |
download | llvm-ae85c73d4af578822bb957d94d6385d73ff57b3b.tar.gz llvm-ae85c73d4af578822bb957d94d6385d73ff57b3b.tar.bz2 llvm-ae85c73d4af578822bb957d94d6385d73ff57b3b.tar.xz |
Fix bad assert.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209648 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r-- | lib/Transforms/InstCombine/InstCombineCalls.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Transforms/InstCombine/InstCombineCalls.cpp b/lib/Transforms/InstCombine/InstCombineCalls.cpp index a0819fdfc8..dda585294f 100644 --- a/lib/Transforms/InstCombine/InstCombineCalls.cpp +++ b/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 |