[llvm-commits] CVS: llvm/utils/TableGen/FileParser.y

Chris Lattner sabre at nondot.org
Sat Oct 7 00:15:05 PDT 2006



Changes in directory llvm/utils/TableGen:

FileParser.y updated: 1.45 -> 1.46
---
Log message:

Bugfix: this allows multiclasses to have default arguments.


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

 FileParser.y |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)


Index: llvm/utils/TableGen/FileParser.y
diff -u llvm/utils/TableGen/FileParser.y:1.45 llvm/utils/TableGen/FileParser.y:1.46
--- llvm/utils/TableGen/FileParser.y:1.45	Fri Sep  1 17:07:27 2006
+++ llvm/utils/TableGen/FileParser.y	Sat Oct  7 02:14:48 2006
@@ -90,7 +90,8 @@
                      std::vector<unsigned> *BitList, Init *V) {
   if (!V) return;
 
-  RecordVal *RV = CurRec->getValue(ValName);
+  Record *TheRec = getActiveRec();
+  RecordVal *RV = TheRec->getValue(ValName);
   if (RV == 0) {
     err() << "Value '" << ValName << "' unknown!\n";
     exit(1);






More information about the llvm-commits mailing list