File tree Expand file tree Collapse file tree 1 file changed +3
-13
lines changed
Expand file tree Collapse file tree 1 file changed +3
-13
lines changed Original file line number Diff line number Diff line change @@ -1428,19 +1428,9 @@ bool ModuleDecl::isStdlibModule() const {
14281428}
14291429
14301430bool ModuleDecl::hasStandardSubstitutions () const {
1431- if (getParent ())
1432- return false ;
1433-
1434- if (getName () == getASTContext ().StdlibModuleName )
1435- return true ;
1436-
1437- // The _Concurrency module gets standard substitutions with "new enough"
1438- // versions of the module.
1439- if (getName () == getASTContext ().Id_Concurrency &&
1440- getASTContext ().getProtocol (KnownProtocolKind::SerialExecutor))
1441- return true ;
1442-
1443- return false ;
1431+ return !getParent () &&
1432+ (getName () == getASTContext ().StdlibModuleName ||
1433+ getName () == getASTContext ().Id_Concurrency );
14441434}
14451435
14461436bool ModuleDecl::isSwiftShimsModule () const {
You can’t perform that action at this time.
0 commit comments