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:
Chris Lattner 2008-04-10 04:48:34 +00:00
parent 80b09fe8bc
commit 3dc2e96eec

View File

@ -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;