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 | 92c11acdb828196922dbcfa37cc28f1c3bcabb75 (patch) | |
| tree | b2ffa0a01ce0057c91f369df1586b63fabb75d5d /llvm/lib/Target/Blackfin | |
| parent | 3d8a9d7490980776752f56d964acbbc1c90e2c57 (diff) | |
| download | bcm5719-llvm-92c11acdb828196922dbcfa37cc28f1c3bcabb75.tar.gz bcm5719-llvm-92c11acdb828196922dbcfa37cc28f1c3bcabb75.zip | |
Change UpdateNodeOperands' operand and return value from SDValue to
SDNode *, since it doesn't care about the ResNo value.
llvm-svn: 106282
Diffstat (limited to 'llvm/lib/Target/Blackfin')
| -rw-r--r-- | llvm/lib/Target/Blackfin/BlackfinISelDAGToDAG.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/Blackfin/BlackfinISelDAGToDAG.cpp b/llvm/lib/Target/Blackfin/BlackfinISelDAGToDAG.cpp index b4da96cba59..80ee1075aad 100644 --- a/llvm/lib/Target/Blackfin/BlackfinISelDAGToDAG.cpp +++ b/llvm/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 |

