mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-02 07:17:36 +00:00
Grab the TargetLowering info from the DAG rather than querying for
a subtarget. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227156 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -5699,9 +5699,8 @@ SelectionDAGBuilder::lowerInvokable(TargetLowering::CallLoweringInfo &CLI,
|
|||||||
|
|
||||||
CLI.setChain(getRoot());
|
CLI.setChain(getRoot());
|
||||||
}
|
}
|
||||||
|
const TargetLowering &TLI = DAG.getTargetLoweringInfo();
|
||||||
const TargetLowering *TLI = TM.getSubtargetImpl()->getTargetLowering();
|
std::pair<SDValue, SDValue> Result = TLI.LowerCallTo(CLI);
|
||||||
std::pair<SDValue, SDValue> Result = TLI->LowerCallTo(CLI);
|
|
||||||
|
|
||||||
assert((CLI.IsTailCall || Result.second.getNode()) &&
|
assert((CLI.IsTailCall || Result.second.getNode()) &&
|
||||||
"Non-null chain expected with non-tail call!");
|
"Non-null chain expected with non-tail call!");
|
||||||
|
|||||||
Reference in New Issue
Block a user