Get the function specific subtarget.

llvm-svn: 230038
This commit is contained in:
Eric Christopher 2015-02-20 18:44:17 +00:00
parent 1df0c519fc
commit f734a8bae7
1 changed files with 2 additions and 1 deletions

View File

@ -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,