mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-23 20:15:35 +00:00
Fix a crash on code like: let x = 1 {x
llvm-svn: 45827
This commit is contained in:
parent
7ceba534ba
commit
64104d9b2f
@ -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…
Reference in New Issue
Block a user