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:
6af35e9
)
Add an error check for a typo I accidentally made in a td file that caused an assert...
author
Craig Topper
<craig.topper@gmail.com>
Tue, 20 Aug 2013 04:22:09 +0000
(
04:22
+0000)
committer
Craig Topper
<craig.topper@gmail.com>
Tue, 20 Aug 2013 04:22:09 +0000
(
04:22
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188742
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/TableGen/TGParser.cpp
patch
|
blob
|
history
diff --git
a/lib/TableGen/TGParser.cpp
b/lib/TableGen/TGParser.cpp
index 965cd00396e6a1382e1e9f7bc59aa479433c870a..daac5747d3e37cea58a78f17e1871ac5699e078f 100644
(file)
--- a/
lib/TableGen/TGParser.cpp
+++ b/
lib/TableGen/TGParser.cpp
@@
-2496,6
+2496,9
@@
bool TGParser::ParseDefm(MultiClass *CurMultiClass) {
if (Lex.getCode() != tgtok::comma) break;
Lex.Lex(); // eat ','.
+ if (Lex.getCode() != tgtok::Id)
+ return TokError("expected identifier");
+
SubClassLoc = Lex.getLoc();
// A defm can inherit from regular classes (non-multiclass) as