]> granicus.if.org Git - llvm/commitdiff
[X86] Add llvm_unreachable to a switch that covers all expected values.
authorCraig Topper <craig.topper@intel.com>
Wed, 14 Aug 2019 14:51:19 +0000 (14:51 +0000)
committerCraig Topper <craig.topper@intel.com>
Wed, 14 Aug 2019 14:51:19 +0000 (14:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368857 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86ISelDAGToDAG.cpp

index fcf9b4148b4dd09d2f04e49e9900a345ae09c48a..364f54ca5aaf0431e4736c5c833e0e819cd86366 100644 (file)
@@ -4201,6 +4201,7 @@ void X86DAGToDAGISel::Select(SDNode *Node) {
 
       unsigned Opc = 0;
       switch (IntNo) {
+      default: llvm_unreachable("Unexpected intrinsic!");
       case Intrinsic::x86_sse3_monitor:
         if (!Subtarget->hasSSE3())
           break;