From: Chris Lattner Date: Sat, 7 Oct 2006 07:14:48 +0000 (+0000) Subject: Bugfix: this allows multiclasses to have default arguments. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=85899b8b1010194f95b6c3a5fd461571b74418f9;p=oota-llvm.git 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 --- diff --git a/utils/TableGen/FileParser.y b/utils/TableGen/FileParser.y index 205fee45ce1..c0e478d210a 100644 --- a/utils/TableGen/FileParser.y +++ b/utils/TableGen/FileParser.y @@ -90,7 +90,8 @@ static void setValue(const std::string &ValName, std::vector *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);