Skip to content

Commit

Permalink
Silencing an MSVC warning about a switch statement with no cases; NFC.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228294 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
AaronBallman committed Feb 5, 2015
1 parent 04715c9 commit ac7a1d5
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions lib/Transforms/Scalar/PlaceSafepoints.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ac7a1d5

Please sign in to comment.