fix a crash on:

let Constraints = "$val = $dst", Defs = [EFLAGS] in, isCodeGenOnly = 1 {

we now get:

X86InstrCompiler.td:653:52: error: Expected class, def, defm, multiclass or let definition
let Constraints = "$val = $dst", Defs = [EFLAGS] in, isCodeGenOnly = 1 {
                                                   ^



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117863 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2010-10-31 19:27:15 +00:00
parent 150d20e8fc
commit d6d9dd9f5e

View File

@ -2087,7 +2087,8 @@ bool TGParser::ParseDefm(MultiClass *CurMultiClass) {
/// Object ::= LETCommand Object /// Object ::= LETCommand Object
bool TGParser::ParseObject(MultiClass *MC) { bool TGParser::ParseObject(MultiClass *MC) {
switch (Lex.getCode()) { switch (Lex.getCode()) {
default: assert(0 && "This is not an object"); default:
return TokError("Expected class, def, defm, multiclass or let definition");
case tgtok::Let: return ParseTopLevelLet(MC); case tgtok::Let: return ParseTopLevelLet(MC);
case tgtok::Def: return ParseDef(MC); case tgtok::Def: return ParseDef(MC);
case tgtok::Defm: return ParseDefm(MC); case tgtok::Defm: return ParseDefm(MC);