Add missing 'return on failure'. Previously we'd crash after emitting

the diagnostic.

llvm-svn: 127480
This commit is contained in:
Jim Grosbach 2011-03-11 19:52:52 +00:00
parent cd29b050b7
commit 730e1c2c9e
1 changed files with 1 additions and 0 deletions

View File

@ -1153,6 +1153,7 @@ Init *TGParser::ParseSimpleValue(Record *CurRec, RecTy *ItemType) {
s << "Type mismatch for list, expected list type, got "
<< ItemType->getAsString();
TokError(s.str());
return 0;
}
GivenListTy = ListType;
}