diff options
author | Dan Gohman <gohman@apple.com> | 2010-06-18 15:30:29 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-06-18 15:30:29 +0000 |
commit | 027657db7cf60bcbf40403496d7e4a170f9ce1ec (patch) | |
tree | ac6b698421db549029d1722e72f6c6adf2db07e1 /lib/Target/Blackfin | |
parent | 07587a450044e32b791baa012032f1cb11bfed88 (diff) | |
download | external_llvm-027657db7cf60bcbf40403496d7e4a170f9ce1ec.zip external_llvm-027657db7cf60bcbf40403496d7e4a170f9ce1ec.tar.gz external_llvm-027657db7cf60bcbf40403496d7e4a170f9ce1ec.tar.bz2 |
Change UpdateNodeOperands' operand and return value from SDValue to
SDNode *, since it doesn't care about the ResNo value.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106282 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Blackfin')
-rw-r--r-- | lib/Target/Blackfin/BlackfinISelDAGToDAG.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/Blackfin/BlackfinISelDAGToDAG.cpp b/lib/Target/Blackfin/BlackfinISelDAGToDAG.cpp index b4da96c..80ee107 100644 --- a/lib/Target/Blackfin/BlackfinISelDAGToDAG.cpp +++ b/lib/Target/Blackfin/BlackfinISelDAGToDAG.cpp @@ -132,8 +132,8 @@ static void UpdateNodeOperand(SelectionDAG &DAG, SDValue Val) { SmallVector<SDValue, 8> ops(N->op_begin(), N->op_end()); ops[Num] = Val; - SDValue New = DAG.UpdateNodeOperands(SDValue(N, 0), ops.data(), ops.size()); - DAG.ReplaceAllUsesWith(N, New.getNode()); + SDNode *New = DAG.UpdateNodeOperands(N, ops.data(), ops.size()); + DAG.ReplaceAllUsesWith(N, New); } // After instruction selection, insert COPY_TO_REGCLASS nodes to help in |