summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2013-08-06 05:41:22 +0000
committerCraig Topper <craig.topper@gmail.com>2013-08-06 05:41:22 +0000
commit741373f6ab69ae9ad7bd309aac487ad504333ef3 (patch)
tree2af55446f185561ef2f6211e169d58cb82f60b9c /include
parent6e95b4c6cee371f3bdfd9ee8a73c4fa9e7dd1a3d (diff)
downloadllvm-741373f6ab69ae9ad7bd309aac487ad504333ef3.tar.gz
llvm-741373f6ab69ae9ad7bd309aac487ad504333ef3.tar.bz2
llvm-741373f6ab69ae9ad7bd309aac487ad504333ef3.tar.xz
Put an llvm_unreachable at the end of getSplatIndex as its loop should never find all undef elements.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187775 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/CodeGen/SelectionDAGNodes.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/SelectionDAGNodes.h b/include/llvm/CodeGen/SelectionDAGNodes.h
index 5fdbe44aaf..987f290425 100644
--- a/include/llvm/CodeGen/SelectionDAGNodes.h
+++ b/include/llvm/CodeGen/SelectionDAGNodes.h
@@ -1205,7 +1205,7 @@ public:
if (Mask[i] >= 0)
return Mask[i];
}
- return -1;
+ llvm_unreachable("Splat with all undef indices?");
}
static bool isSplatMask(const int *Mask, EVT VT);