[llvm] r228294 - Silencing an MSVC warning about a switch statement with no cases; NFC.

Aaron Ballman aaron at aaronballman.com
Thu Feb 5 05:40:05 PST 2015


Author: aaronballman
Date: Thu Feb  5 07:40:04 2015
New Revision: 228294

URL: http://llvm.org/viewvc/llvm-project?rev=228294&view=rev
Log:
Silencing an MSVC warning about a switch statement with no cases; NFC.

Modified:
    llvm/trunk/lib/Transforms/Scalar/PlaceSafepoints.cpp

Modified: llvm/trunk/lib/Transforms/Scalar/PlaceSafepoints.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/PlaceSafepoints.cpp?rev=228294&r1=228293&r2=228294&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/PlaceSafepoints.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/PlaceSafepoints.cpp Thu Feb  5 07:40:04 2015
@@ -700,14 +700,11 @@ INITIALIZE_PASS_END(PlaceSafepoints, "pl
 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





More information about the llvm-commits mailing list