Silencing an MSVC warning about a switch statement with no cases; NFC.
authorAaron Ballman <aaron@aaronballman.com>
Thu, 5 Feb 2015 13:40:04 +0000 (13:40 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Thu, 5 Feb 2015 13:40:04 +0000 (13:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228294 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/PlaceSafepoints.cpp

index e743a5bce72e87637678fd81870b3c7df9e18e50..51859ada58d174fb1ba7fcb99fe727fe2a582801 100644 (file)
@@ -700,14 +700,11 @@ INITIALIZE_PASS_END(PlaceSafepoints, "place-safepoints", "Place Safepoints",
 static bool isGCLeafFunction(const CallSite &CS) {
   Instruction *inst = CS.getInstruction();
   if (IntrinsicInst *II = dyn_cast<IntrinsicInst>(inst)) {
-    switch (II->getIntrinsicID()) {
-    default:
-      // Most LLVM intrinsics are things which can never take a safepoint.
-      // As a result, we don't need to have the stack parsable at the
-      // callsite.  This is a highly useful optimization since intrinsic
-      // calls are fairly prevelent, particularly in debug builds.
-      return true;
-    }
+    // Most LLVM intrinsics are things which can never take a safepoint.
+    // As a result, we don't need to have the stack parsable at the
+    // callsite.  This is a highly useful optimization since intrinsic
+    // calls are fairly prevelent, particularly in debug builds.
+    return true;
   }
 
   // If this function is marked explicitly as a leaf call, we don't need to