mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-29 10:32:47 +00:00
produce an error on invalid input instead of asserting:
def : Pat<((v2f64 (vector_shuffle immAllZerosV_bc, ^ git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49462 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
80b09fe8bc
commit
3dc2e96eec
@ -616,6 +616,11 @@ Init *TGParser::ParseSimpleValue(Record *CurRec) {
|
||||
}
|
||||
case tgtok::l_paren: { // Value ::= '(' IDValue DagArgList ')'
|
||||
Lex.Lex(); // eat the '('
|
||||
if (Lex.getCode() != tgtok::Id) {
|
||||
TokError("expected identifier in dag init");
|
||||
return 0;
|
||||
}
|
||||
|
||||
Init *Operator = ParseIDValue(CurRec);
|
||||
if (Operator == 0) return 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user