summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2010-01-31 07:27:31 +0000
committerEvan Cheng <evan.cheng@apple.com>2010-01-31 07:27:31 +0000
commit9adc6f46cfedcd8e757f673785e57ae622be0540 (patch)
treed0d6b83475f0366329ea879742b7e3f4e80f4939 /llvm/lib
parent234c129fba6664c90e62a0753596411e1458ddd6 (diff)
downloadbcm5719-llvm-9adc6f46cfedcd8e757f673785e57ae622be0540.tar.gz
bcm5719-llvm-9adc6f46cfedcd8e757f673785e57ae622be0540.zip
Fix a missing check from my last commit.
llvm-svn: 94949
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/X86/X86ISelLowering.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp
index e27d93cf7c8..e272d9b92af 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -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.
OpenPOWER on IntegriCloud