mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 11:02:59 +02:00
Grab the TargetLowering info from the DAG rather than querying for
a subtarget. llvm-svn: 227156
This commit is contained in:
parent
f90c632cee
commit
a7bc04d3a5
@ -5699,9 +5699,8 @@ SelectionDAGBuilder::lowerInvokable(TargetLowering::CallLoweringInfo &CLI,
|
||||
|
||||
CLI.setChain(getRoot());
|
||||
}
|
||||
|
||||
const TargetLowering *TLI = TM.getSubtargetImpl()->getTargetLowering();
|
||||
std::pair<SDValue, SDValue> Result = TLI->LowerCallTo(CLI);
|
||||
const TargetLowering &TLI = DAG.getTargetLoweringInfo();
|
||||
std::pair<SDValue, SDValue> Result = TLI.LowerCallTo(CLI);
|
||||
|
||||
assert((CLI.IsTailCall || Result.second.getNode()) &&
|
||||
"Non-null chain expected with non-tail call!");
|
||||
|
Loading…
Reference in New Issue
Block a user