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 | 4da7620a38a361d4a28e3a5e267c8cfe13c8873f (patch) | |
tree | 3797031c680bdcc73f1e129bf4f95a671dc13b23 /lib | |
parent | 68264ff5fc2233d79f5a8fde1101e57ada36c811 (diff) | |
download | external_llvm-4da7620a38a361d4a28e3a5e267c8cfe13c8873f.zip external_llvm-4da7620a38a361d4a28e3a5e267c8cfe13c8873f.tar.gz external_llvm-4da7620a38a361d4a28e3a5e267c8cfe13c8873f.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')
-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. |