mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Remove special case for stdlib in IsNonUserModuleRequest
It's possible this may be the main module, or a "local" dependency within the same project, and should be treated as a user module in such cases.
This commit is contained in:
@@ -3906,10 +3906,6 @@ FrontendStatsTracer::getTraceFormatter<const SourceFile *>() {
|
||||
}
|
||||
|
||||
bool IsNonUserModuleRequest::evaluate(Evaluator &evaluator, ModuleDecl *mod) const {
|
||||
// stdlib is non-user by definition
|
||||
if (mod->isStdlibModule())
|
||||
return true;
|
||||
|
||||
// If there's no SDK path, fallback to checking whether the module was
|
||||
// in the system search path or a clang system module
|
||||
SearchPathOptions &searchPathOpts = mod->getASTContext().SearchPathOpts;
|
||||
|
||||
Reference in New Issue
Block a user