mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 02:33:33 +00:00
Fix a crash on code like: let x = 1 {x
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45827 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
36fe6d2f80
commit
811281e788
@ -290,7 +290,10 @@ ParseSubClassReference(Record *CurRec, bool isDefm) {
|
||||
/// RangePiece ::= INTVAL '-' INTVAL
|
||||
/// RangePiece ::= INTVAL INTVAL
|
||||
bool TGParser::ParseRangePiece(std::vector<unsigned> &Ranges) {
|
||||
assert(Lex.getCode() == tgtok::IntVal && "Invalid range");
|
||||
if (Lex.getCode() != tgtok::IntVal) {
|
||||
TokError("expected integer or bitrange");
|
||||
return true;
|
||||
}
|
||||
int Start = Lex.getCurIntVal();
|
||||
int End;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user