mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Silencing an MSVC warning about a switch statement with no cases; NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228294 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
04715c9915
commit
ac7a1d5994
@ -700,15 +700,12 @@ 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;
|
||||
}
|
||||
}
|
||||
|
||||
// If this function is marked explicitly as a leaf call, we don't need to
|
||||
// place a safepoint of it. In fact, for correctness we *can't* in many
|
||||
|
Loading…
Reference in New Issue
Block a user