Bugfix: this allows multiclasses to have default arguments.
authorChris Lattner <sabre@nondot.org>
Sat, 7 Oct 2006 07:14:48 +0000 (07:14 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 7 Oct 2006 07:14:48 +0000 (07:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30798 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/FileParser.y

index 205fee45ce1d76a019a185f7afcd264a8f8300b0..c0e478d210a574f029e60a191880cee35515a8fe 100644 (file)
@@ -90,7 +90,8 @@ static void setValue(const std::string &ValName,
                      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);