Even though no caller actually uses the new value
authorDuncan Sands <baldrick@free.fr>
Mon, 1 Sep 2008 13:11:13 +0000 (13:11 +0000)
committerDuncan Sands <baldrick@free.fr>
Mon, 1 Sep 2008 13:11:13 +0000 (13:11 +0000)
(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

lib/CodeGen/SelectionDAG/LegalizeTypes.h

index d8cbf78e46dacdf20b961de45d463e126f4f6027..5780021f90a94921b1c8a3eecde87e2b8b58e4b2 100644 (file)
@@ -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) {