aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-10-07 07:14:48 +0000
committerChris Lattner <sabre@nondot.org>2006-10-07 07:14:48 +0000
commit85899b8b1010194f95b6c3a5fd461571b74418f9 (patch)
tree0b5fff69c17f3fe13202c7e72ef58229f23397f5
parent7733799464a8d845389e2f153a7c74a51e8e809b (diff)
Bugfix: this allows multiclasses to have default arguments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30798 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--utils/TableGen/FileParser.y3
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/TableGen/FileParser.y b/utils/TableGen/FileParser.y
index 205fee45ce..c0e478d210 100644
--- a/utils/TableGen/FileParser.y
+++ b/utils/TableGen/FileParser.y
@@ -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);