mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-18 10:24:45 +00:00
Fix a nasty bug (PR3550) where the inline pass could incorrectly mark
calls with the tail marker when inlining them through an invoke. Patch, testcase, and perfect analysis by Jay Foad! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64364 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -203,10 +203,10 @@ bool llvm::InlineFunction(CallSite CS, CallGraph *CG, const TargetData *TD) {
|
||||
CalledFunc->getFunctionType()->isVarArg()) return false;
|
||||
|
||||
|
||||
// If the call to the callee is a non-tail call, we must clear the 'tail'
|
||||
// If the call to the callee is not a tail call, we must clear the 'tail'
|
||||
// flags on any calls that we inline.
|
||||
bool MustClearTailCallFlags =
|
||||
isa<CallInst>(TheCall) && !cast<CallInst>(TheCall)->isTailCall();
|
||||
!(isa<CallInst>(TheCall) && cast<CallInst>(TheCall)->isTailCall());
|
||||
|
||||
// If the call to the callee cannot throw, set the 'nounwind' flag on any
|
||||
// calls that we inline.
|
||||
|
Reference in New Issue
Block a user