[llvm] r209648 - Fix bad assert.

Daniel Jasper djasper at google.com
Tue May 27 02:55:37 PDT 2014


Author: djasper
Date: Tue May 27 04:55:37 2014
New Revision: 209648

URL: http://llvm.org/viewvc/llvm-project?rev=209648&view=rev
Log:
Fix bad assert.

Modified:
    llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp

Modified: llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp?rev=209648&r1=209647&r2=209648&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp (original)
+++ llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp Tue May 27 04:55:37 2014
@@ -735,7 +735,8 @@ Instruction *InstCombiner::visitCallInst
       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





More information about the llvm-commits mailing list