mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Assert that an added file loaded without error
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user