projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7733799
)
Bugfix: this allows multiclasses to have default arguments.
author
Chris Lattner
<sabre@nondot.org>
Sat, 7 Oct 2006 07:14:48 +0000
(07:14 +0000)
committer
Chris 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
patch
|
blob
|
history
diff --git
a/utils/TableGen/FileParser.y
b/utils/TableGen/FileParser.y
index 205fee45ce1d76a019a185f7afcd264a8f8300b0..c0e478d210a574f029e60a191880cee35515a8fe 100644
(file)
--- 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);