[llvm-commits] CVS: llvm/utils/TableGen/DAGISelEmitter.cpp

Lauro Ramos Venancio lauro.venancio at gmail.com
Thu Apr 26 10:03:39 PDT 2007



Changes in directory llvm/utils/TableGen:

DAGISelEmitter.cpp updated: 1.293 -> 1.294
---
Log message:

bugfix: remember that ResNode was declared.


---
Diffs of the changes:  (+3 -2)

 DAGISelEmitter.cpp |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)


Index: llvm/utils/TableGen/DAGISelEmitter.cpp
diff -u llvm/utils/TableGen/DAGISelEmitter.cpp:1.293 llvm/utils/TableGen/DAGISelEmitter.cpp:1.294
--- llvm/utils/TableGen/DAGISelEmitter.cpp:1.293	Fri Apr 20 16:38:10 2007
+++ llvm/utils/TableGen/DAGISelEmitter.cpp	Thu Apr 26 12:03:22 2007
@@ -2851,9 +2851,10 @@
           Code2 = "SDOperand " + NodeName + " = SDOperand(";
         } else {
           NodeName = "ResNode";
-          if (!ResNodeDecled)
+          if (!ResNodeDecled) {
             Code2 = "SDNode *" + NodeName + " = ";
-          else
+            ResNodeDecled = true;
+          } else
             Code2 = NodeName + " = ";
         }
 






More information about the llvm-commits mailing list