summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Blackfin
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-06-18 15:30:29 +0000
committerDan Gohman <gohman@apple.com>2010-06-18 15:30:29 +0000
commit92c11acdb828196922dbcfa37cc28f1c3bcabb75 (patch)
treeb2ffa0a01ce0057c91f369df1586b63fabb75d5d /llvm/lib/Target/Blackfin
parent3d8a9d7490980776752f56d964acbbc1c90e2c57 (diff)
downloadbcm5719-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.cpp4
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
OpenPOWER on IntegriCloud