Add a missing break statement to fix unintentional fall-through
authorBob Wilson <bob.wilson@apple.com>
Thu, 6 May 2010 16:05:26 +0000 (16:05 +0000)
committerBob Wilson <bob.wilson@apple.com>
Thu, 6 May 2010 16:05:26 +0000 (16:05 +0000)
(replacing the previous patch for the same issue).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103183 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMISelDAGToDAG.cpp

index a3c600f1978fb529378a5e038eef774407d171f0..da962e1d911209a263a3f7ea123fb76d0a506842 100644 (file)
@@ -1866,7 +1866,7 @@ SDNode *ARMDAGToDAGISel::Select(SDNode *N) {
     unsigned IntNo = cast<ConstantSDNode>(N->getOperand(1))->getZExtValue();
     switch (IntNo) {
     default:
-      return SelectCode(N);
+      break;
 
     case Intrinsic::arm_neon_vld1: {
       unsigned DOpcodes[] = { ARM::VLD1d8, ARM::VLD1d16,
@@ -1988,13 +1988,12 @@ SDNode *ARMDAGToDAGISel::Select(SDNode *N) {
       return SelectVLDSTLane(N, false, 4, DOpcodes, QOpcodes0, QOpcodes1);
     }
     }
-    llvm_unreachable("Unhandled intrinsic");
+    break;
   }
 
-  case ISD::CONCAT_VECTORS: {
+  case ISD::CONCAT_VECTORS:
     return SelectConcatVector(N);
   }
-  }
 
   return SelectCode(N);
 }