forked from OSchip/llvm-project
Add missing 'return on failure'. Previously we'd crash after emitting
the diagnostic. llvm-svn: 127480
This commit is contained in:
parent
cd29b050b7
commit
730e1c2c9e
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue