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:
Evan Cheng
2012-04-10 03:15:18 +00:00
parent c72e08b4a9
commit b52ba49fdb

View File

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