diff options
author | Nate Begeman <natebegeman@mac.com> | 2009-04-29 18:13:31 +0000 |
---|---|---|
committer | Nate Begeman <natebegeman@mac.com> | 2009-04-29 18:13:31 +0000 |
commit | a641575828192c741531d431fbf191e6c1ba17c5 (patch) | |
tree | 3797031c680bdcc73f1e129bf4f95a671dc13b23 /lib/CodeGen | |
parent | c9cf35055f7b0fd5814836686b4a550dc69bd11c (diff) | |
download | external_llvm-a641575828192c741531d431fbf191e6c1ba17c5.zip external_llvm-a641575828192c741531d431fbf191e6c1ba17c5.tar.gz external_llvm-a641575828192c741531d431fbf191e6c1ba17c5.tar.bz2 |
Update comment, replace theoretically impossible check with an assert.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70391 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index d6a421d..b33b469 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -5731,9 +5731,7 @@ bool ShuffleVectorSDNode::isSplatMask(const int *Mask, MVT VT) { for (i = 0, e = VT.getVectorNumElements(); i != e && Mask[i] < 0; ++i) /* search */; - // If we hit the end of the mask looking for a non-undef value, return false. - if (i == e) - return false; + assert(i != e && "VECTOR_SHUFFLE node with all undef indices!"); // Make sure all remaining elements are either undef or the same as the first // non-undef value. |