Fix bad assert.
authorDaniel Jasper <djasper@google.com>
Tue, 27 May 2014 09:55:37 +0000 (09:55 +0000)
committerDaniel Jasper <djasper@google.com>
Tue, 27 May 2014 09:55:37 +0000 (09:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209648 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/InstCombine/InstCombineCalls.cpp

index a0819fdfc82792190e025de0e578b889317bc51b..dda585294fa2534463782cb6a8f0e9d1666b1959 100644 (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