[llvm] r187775 - Put an llvm_unreachable at the end of getSplatIndex as its loop should never find all undef elements.
Craig Topper
craig.topper at gmail.com
Mon Aug 5 22:41:22 PDT 2013
Author: ctopper
Date: Tue Aug 6 00:41:22 2013
New Revision: 187775
URL: http://llvm.org/viewvc/llvm-project?rev=187775&view=rev
Log:
Put an llvm_unreachable at the end of getSplatIndex as its loop should never find all undef elements.
Modified:
llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h
Modified: llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h?rev=187775&r1=187774&r2=187775&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h (original)
+++ llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h Tue Aug 6 00:41:22 2013
@@ -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);
More information about the llvm-commits
mailing list