Assert that an added file loaded without error

This commit is contained in:
Hamish Knight
2020-05-28 15:06:55 -07:00
parent 046f17f519
commit 439c1481be
4 changed files with 13 additions and 0 deletions

View File

@@ -1103,6 +1103,10 @@ bool SerializedASTFile::isSIB() const {
return File.IsSIB;
}
bool SerializedASTFile::hadLoadError() const {
return File.hasError();
}
bool SerializedASTFile::isSystemModule() const {
if (auto Mod = File.getUnderlyingModule()) {
return Mod->isSystemModule();