mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 17:32:19 +00:00
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:
parent
e4f6d7461a
commit
6a44adade2
@ -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…
x
Reference in New Issue
Block a user