From 73458c95ac7e4c6a1cb24166030ecce65ed33101 Mon Sep 17 00:00:00 2001 From: Daniel Jasper Date: Tue, 27 May 2014 09:55:37 +0000 Subject: [PATCH] Fix bad assert. llvm-svn: 209648 --- llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp b/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp index a0819fd..dda5852 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 Selectors; for (unsigned I = 0; I < Size; ++I) { // The intrinsics only read the top bit -- 2.7.4