Add an explanatory message for an assertion.
authorBob Wilson <bob.wilson@apple.com>
Fri, 7 Jan 2011 23:40:46 +0000 (23:40 +0000)
committerBob Wilson <bob.wilson@apple.com>
Fri, 7 Jan 2011 23:40:46 +0000 (23:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123042 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMISelLowering.cpp

index 38daeaa5bbd1899f641b67d0e5c5bec68a3d35af..9ecc87149172c672d308347628356ce8dd527498 100644 (file)
@@ -3715,7 +3715,8 @@ SDValue ARMTargetLowering::ReconstructShuffle(SDValue Op, SelectionDAG &DAG) con
     
     // Since only 64-bit and 128-bit vectors are legal on ARM and
     // we've eliminated the other cases...
-    assert(SourceVecs[i].getValueType().getVectorNumElements() == 2*NumElts);
+    assert(SourceVecs[i].getValueType().getVectorNumElements() == 2*NumElts &&
+           "unexpected vector sizes in ReconstructShuffle");
     
     if (MaxElts[i] - MinElts[i] >= NumElts) {
       // Span too large for a VEXT to cope