diff options
author | Eric Christopher <echristo@apple.com> | 2011-01-20 01:29:23 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2011-01-20 01:29:23 +0000 |
commit | e3385811aaf1e7ff548c1f1edc6a85d034909a5c (patch) | |
tree | da652c7e7e8c12a2bd198b580d18d008e3e96d04 /lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | |
parent | 38a18261b97a0b7e0ed75b1c8edd81ec9bd01085 (diff) | |
download | external_llvm-e3385811aaf1e7ff548c1f1edc6a85d034909a5c.zip external_llvm-e3385811aaf1e7ff548c1f1edc6a85d034909a5c.tar.gz external_llvm-e3385811aaf1e7ff548c1f1edc6a85d034909a5c.tar.bz2 |
Use only one API at a time.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123866 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/LegalizeDAG.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index f0ce284..88e354a 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())); |