diff options
author | Craig Topper <craig.topper@gmail.com> | 2013-08-06 05:41:22 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2013-08-06 05:41:22 +0000 |
commit | 5ba12d75dfd4bc0f96e7d15fd6151a9c09b76943 (patch) | |
tree | 520368bdbc1782b84f0688581d8a7e4ed73199eb | |
parent | 770547db15800e3f76e9dad675bff081fcd74787 (diff) | |
download | bcm5719-llvm-5ba12d75dfd4bc0f96e7d15fd6151a9c09b76943.tar.gz bcm5719-llvm-5ba12d75dfd4bc0f96e7d15fd6151a9c09b76943.zip |
Put an llvm_unreachable at the end of getSplatIndex as its loop should never find all undef elements.
llvm-svn: 187775
-rw-r--r-- | llvm/include/llvm/CodeGen/SelectionDAGNodes.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/CodeGen/SelectionDAGNodes.h b/llvm/include/llvm/CodeGen/SelectionDAGNodes.h index 5fdbe44aafd..987f2904251 100644 --- a/llvm/include/llvm/CodeGen/SelectionDAGNodes.h +++ b/llvm/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); |