mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-09 11:25:55 +00:00
Make the code slightly more palatable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154378 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1790,7 +1790,11 @@ SDValue SelectionDAGLegalize::ExpandLibCall(RTLIB::Libcall LC, SDNode *Node,
|
|||||||
|
|
||||||
// isTailCall may be true since the callee does not reference caller stack
|
// isTailCall may be true since the callee does not reference caller stack
|
||||||
// frame. Check if it's in the right position.
|
// frame. Check if it's in the right position.
|
||||||
bool isTailCall = isInTailCallPosition(DAG, Node, InChain, TLI);
|
SDValue TCChain = InChain;
|
||||||
|
bool isTailCall = isInTailCallPosition(DAG, Node, TCChain, TLI);
|
||||||
|
if (isTailCall)
|
||||||
|
InChain = TCChain;
|
||||||
|
|
||||||
std::pair<SDValue, SDValue> CallInfo =
|
std::pair<SDValue, SDValue> CallInfo =
|
||||||
TLI.LowerCallTo(InChain, RetTy, isSigned, !isSigned, false, false,
|
TLI.LowerCallTo(InChain, RetTy, isSigned, !isSigned, false, false,
|
||||||
0, TLI.getLibcallCallingConv(LC), isTailCall,
|
0, TLI.getLibcallCallingConv(LC), isTailCall,
|
||||||
|
Reference in New Issue
Block a user