Fix bad assert.

llvm-svn: 209648
This commit is contained in:
Daniel Jasper 2014-05-27 09:55:37 +00:00
parent 2af0a91cc4
commit 73458c95ac
1 changed files with 2 additions and 1 deletions

View File

@ -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