[llvm] r368857 - [X86] Add llvm_unreachable to a switch that covers all expected values.
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 14 07:51:19 PDT 2019
Author: ctopper
Date: Wed Aug 14 07:51:19 2019
New Revision: 368857
URL: http://llvm.org/viewvc/llvm-project?rev=368857&view=rev
Log:
[X86] Add llvm_unreachable to a switch that covers all expected values.
Modified:
llvm/trunk/lib/Target/X86/X86ISelDAGToDAG.cpp
Modified: llvm/trunk/lib/Target/X86/X86ISelDAGToDAG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelDAGToDAG.cpp?rev=368857&r1=368856&r2=368857&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelDAGToDAG.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelDAGToDAG.cpp Wed Aug 14 07:51:19 2019
@@ -4201,6 +4201,7 @@ void X86DAGToDAGISel::Select(SDNode *Nod
unsigned Opc = 0;
switch (IntNo) {
+ default: llvm_unreachable("Unexpected intrinsic!");
case Intrinsic::x86_sse3_monitor:
if (!Subtarget->hasSSE3())
break;
More information about the llvm-commits
mailing list