diff options
author | Duncan Sands <baldrick@free.fr> | 2008-09-01 13:11:13 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2008-09-01 13:11:13 +0000 |
commit | 4b31a2a7cea770b51a97ca3801b154ce46efb5f9 (patch) | |
tree | 51f73eb59bb018c7d84099d87c36fccc55b49638 /llvm/lib/CodeGen | |
parent | fdbe925974db713a11135a548a5fa523616fa8c7 (diff) | |
download | bcm5719-llvm-4b31a2a7cea770b51a97ca3801b154ce46efb5f9.tar.gz bcm5719-llvm-4b31a2a7cea770b51a97ca3801b154ce46efb5f9.zip |
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.
llvm-svn: 55606
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.h b/llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.h index d8cbf78e46d..5780021f90a 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.h +++ b/llvm/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) { |