mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-06 05:33:28 +00:00
Don't Parse Object Body as a Name
Stop parsing a value if we are in name parsing mode and we see a left brace. A left brace indicates the start of an object body when we are parsing a name. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142521 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bbec279d8e
commit
8592b2b2a3
@ -1330,6 +1330,10 @@ Init *TGParser::ParseValue(Record *CurRec, RecTy *ItemType, IDParseMode Mode) {
|
||||
switch (Lex.getCode()) {
|
||||
default: return Result;
|
||||
case tgtok::l_brace: {
|
||||
if (Mode == ParseNameMode)
|
||||
// This is the beginning of the object body.
|
||||
return Result;
|
||||
|
||||
SMLoc CurlyLoc = Lex.getLoc();
|
||||
Lex.Lex(); // eat the '{'
|
||||
std::vector<unsigned> Ranges = ParseRangeList();
|
||||
|
Loading…
x
Reference in New Issue
Block a user