forked from OSchip/llvm-project
produce an error on invalid input instead of asserting:
def : Pat<((v2f64 (vector_shuffle immAllZerosV_bc, ^ llvm-svn: 49462
This commit is contained in:
parent
9d339849ee
commit
57dd77462b
|
@ -616,6 +616,11 @@ Init *TGParser::ParseSimpleValue(Record *CurRec) {
|
||||||
}
|
}
|
||||||
case tgtok::l_paren: { // Value ::= '(' IDValue DagArgList ')'
|
case tgtok::l_paren: { // Value ::= '(' IDValue DagArgList ')'
|
||||||
Lex.Lex(); // eat the '('
|
Lex.Lex(); // eat the '('
|
||||||
|
if (Lex.getCode() != tgtok::Id) {
|
||||||
|
TokError("expected identifier in dag init");
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
Init *Operator = ParseIDValue(CurRec);
|
Init *Operator = ParseIDValue(CurRec);
|
||||||
if (Operator == 0) return 0;
|
if (Operator == 0) return 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue