1
0
mirror of https://github.com/c64scene-ar/llvm-6502.git synced 2025-04-12 07:37:34 +00:00

Get the function specific subtarget.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230038 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eric Christopher 2015-02-20 18:44:17 +00:00
parent 6de800e056
commit 0bbf62fce8

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