aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2008-09-01 13:11:13 +0000
committerDuncan Sands <baldrick@free.fr>2008-09-01 13:11:13 +0000
commit1189f3ac3b84063f1569eddeacfcb3b79bc25c69 (patch)
tree524893142271d43376f7f65d3cb95c43a2720822
parent14a093ac4ccfec150e49a1666fcec23342862424 (diff)
Even though no caller actually uses the new value
(what matters is that it is added to the worklist), it seems more logical to return it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55606 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/SelectionDAG/LegalizeTypes.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/LegalizeTypes.h b/lib/CodeGen/SelectionDAG/LegalizeTypes.h
index d8cbf78e46..5780021f90 100644
--- a/lib/CodeGen/SelectionDAG/LegalizeTypes.h
+++ b/lib/CodeGen/SelectionDAG/LegalizeTypes.h
@@ -155,10 +155,11 @@ public:
/// ReanalyzeNode - Recompute the NodeID and correct processed operands
/// for the specified node, adding it to the worklist if ready.
- void ReanalyzeNode(SDNode *N) {
+ SDNode *ReanalyzeNode(SDNode *N) {
N->setNodeId(NewNode);
SDValue V(N, 0);
AnalyzeNewNode(V); // FIXME: ignore the change?
+ return V.getNode();
}
void NoteDeletion(SDNode *Old, SDNode *New) {