Put an llvm_unreachable at the end of getSplatIndex as its loop should never find...
authorCraig Topper <craig.topper@gmail.com>
Tue, 6 Aug 2013 05:41:22 +0000 (05:41 +0000)
committerCraig Topper <craig.topper@gmail.com>
Tue, 6 Aug 2013 05:41:22 +0000 (05:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187775 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/SelectionDAGNodes.h

index 5fdbe44aafd1a9dc02fa4c1d98d9dbe49a1dbd1a..987f2904251515ec99991ff473e07cd647491b4c 100644 (file)
@@ -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);