projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6de800e
)
Get the function specific subtarget.
author
Eric Christopher
<echristo@gmail.com>
Fri, 20 Feb 2015 18:44:17 +0000
(18:44 +0000)
committer
Eric Christopher
<echristo@gmail.com>
Fri, 20 Feb 2015 18:44:17 +0000
(18:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230038
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/Analysis.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/Analysis.cpp
b/lib/CodeGen/Analysis.cpp
index 2e8af9eb00482505223b304767a426985ef3f3b7..e50b846ddd8c385501b075e305405db98676bb38 100644
(file)
--- a/
lib/CodeGen/Analysis.cpp
+++ b/
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,