diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2015-02-05 13:40:04 +0000 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2015-02-05 13:40:04 +0000 |
commit | 1b072b340b4c317962be279ed574394ed787d4ba (patch) | |
tree | 3b483170a08a972dc01ac7eed1592874200a440a /llvm/lib/Transforms/Scalar/PlaceSafepoints.cpp | |
parent | ab9ae87623ac6bae1fe28a8c740063cfcd5fcdb9 (diff) | |
download | bcm5719-llvm-1b072b340b4c317962be279ed574394ed787d4ba.tar.gz bcm5719-llvm-1b072b340b4c317962be279ed574394ed787d4ba.zip |
Silencing an MSVC warning about a switch statement with no cases; NFC.
llvm-svn: 228294
Diffstat (limited to 'llvm/lib/Transforms/Scalar/PlaceSafepoints.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/PlaceSafepoints.cpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/llvm/lib/Transforms/Scalar/PlaceSafepoints.cpp b/llvm/lib/Transforms/Scalar/PlaceSafepoints.cpp index e743a5bce72..51859ada58d 100644 --- a/llvm/lib/Transforms/Scalar/PlaceSafepoints.cpp +++ b/llvm/lib/Transforms/Scalar/PlaceSafepoints.cpp @@ -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 |