mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Index: Accept compiler errors during index-while-building
Force allowing reading from modules with compiler errors during index-while-building as a way to recover from more deserialization issues.
This commit is contained in:
@@ -135,7 +135,8 @@ ModuleFile::ModuleFile(std::shared_ptr<const ModuleFileSharedCore> core)
|
||||
}
|
||||
|
||||
bool ModuleFile::allowCompilerErrors() const {
|
||||
return getContext().LangOpts.AllowModuleWithCompilerErrors;
|
||||
return getContext().LangOpts.AllowModuleWithCompilerErrors ||
|
||||
getContext().ForceAllowModuleWithCompilerErrors;
|
||||
}
|
||||
|
||||
Status
|
||||
|
||||
Reference in New Issue
Block a user