diff options
author | Eric Christopher <echristo@gmail.com> | 2015-02-20 18:44:17 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2015-02-20 18:44:17 +0000 |
commit | f734a8bae7d78d3c035c77354f21383024e3fc73 (patch) | |
tree | 3918f54f9991b1442b210cc5deac43c21e934688 /llvm/lib/CodeGen/Analysis.cpp | |
parent | 1df0c519fc3576519f35427a3b8763fd3a210a35 (diff) | |
download | bcm5719-llvm-f734a8bae7d78d3c035c77354f21383024e3fc73.tar.gz bcm5719-llvm-f734a8bae7d78d3c035c77354f21383024e3fc73.zip |
Get the function specific subtarget.
llvm-svn: 230038
Diffstat (limited to 'llvm/lib/CodeGen/Analysis.cpp')
-rw-r--r-- | llvm/lib/CodeGen/Analysis.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/Analysis.cpp b/llvm/lib/CodeGen/Analysis.cpp index 2e8af9eb004..e50b846ddd8 100644 --- a/llvm/lib/CodeGen/Analysis.cpp +++ b/llvm/lib/CodeGen/Analysis.cpp @@ -518,8 +518,9 @@ bool llvm::isInTailCallPosition(ImmutableCallSite CS, const TargetMachine &TM) { return false; } + const Function *F = ExitBB->getParent(); return returnTypeIsEligibleForTailCall( - ExitBB->getParent(), I, Ret, *TM.getSubtargetImpl()->getTargetLowering()); + F, I, Ret, *TM.getSubtargetImpl(*F)->getTargetLowering()); } bool llvm::returnTypeIsEligibleForTailCall(const Function *F, |