diff options
author | Craig Topper <craig.topper@gmail.com> | 2014-04-27 19:21:16 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2014-04-27 19:21:16 +0000 |
commit | f564ea31f005d44aafb09d8a4a155b0ef787d6c3 (patch) | |
tree | 6710b99c1c3c7f8a6a0a1d1b06c4ac49157b04f6 /lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | |
parent | 1aa05f3844912837465d419a3c32c2f00056371e (diff) | |
download | llvm-f564ea31f005d44aafb09d8a4a155b0ef787d6c3.tar.gz llvm-f564ea31f005d44aafb09d8a4a155b0ef787d6c3.tar.bz2 llvm-f564ea31f005d44aafb09d8a4a155b0ef787d6c3.tar.xz |
Convert SelectionDAG::MorphNodeTo to use ArrayRef.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207378 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index b0bf79eb67..9ff2602dea 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -2106,7 +2106,8 @@ MorphNode(SDNode *Node, unsigned TargetOpc, SDVTList VTList, // Call the underlying SelectionDAG routine to do the transmogrification. Note // that this deletes operands of the old node that become dead. - SDNode *Res = CurDAG->MorphNodeTo(Node, ~TargetOpc, VTList, Ops, NumOps); + SDNode *Res = CurDAG->MorphNodeTo(Node, ~TargetOpc, VTList, + ArrayRef<SDValue>(Ops, NumOps)); // MorphNodeTo can operate in two ways: if an existing node with the // specified operands exists, it can just return it. Otherwise, it |