mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-28 15:33:16 +00:00
Fix a missing check from my last commit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94949 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
843bd699f6
commit
e626b0f6b1
@ -2270,7 +2270,8 @@ X86TargetLowering::IsEligibleForTailCallOptimization(SDValue Callee,
|
||||
return false;
|
||||
// If it's an indirect call, conversatively return false if the caller's
|
||||
// address is taken.
|
||||
if (!isa<ExternalSymbolSDNode>(Callee) && CallerF->hasAddressTaken())
|
||||
if (!CalleeF &&
|
||||
!isa<ExternalSymbolSDNode>(Callee) && CallerF->hasAddressTaken())
|
||||
return false;
|
||||
|
||||
// Look for obvious safe cases to perform tail call optimization.
|
||||
|
Loading…
Reference in New Issue
Block a user