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

the diagnostic.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127480 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Jim Grosbach 2011-03-11 19:52:52 +00:00
parent e4f6d7461a
commit 6a44adade2

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