From: Eric Christopher Date: Thu, 20 Jan 2011 01:29:23 +0000 (+0000) Subject: Use only one API at a time. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e3385811aaf1e7ff548c1f1edc6a85d034909a5c;p=oota-llvm.git Use only one API at a time. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123866 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index f0ce28471b5..88e354abcb2 100644 --- a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp @@ -3210,8 +3210,7 @@ void SelectionDAGLegalize::ExpandNode(SDNode *Node, LHS = DAG.getNode(Ops[isSigned][2], dl, WideVT, LHS); RHS = DAG.getNode(Ops[isSigned][2], dl, WideVT, RHS); - SDValue Ops[2] = { LHS, RHS }; - SDValue Ret = ExpandLibCall(LC, Node, Ops); + SDValue Ret = ExpandLibCall(LC, Node, isSigned); BottomHalf = DAG.getNode(ISD::TRUNCATE, dl, VT, Ret); TopHalf = DAG.getNode(ISD::SRL, dl, Ret.getValueType(), Ret, DAG.getConstant(VT.getSizeInBits(), TLI.getPointerTy()));