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 {
1428
1428
}
1429
1429
1430
1430
bool 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 );
1444
1434
}
1445
1435
1446
1436
bool ModuleDecl::isSwiftShimsModule () const {
You can’t perform that action at this time.
0 commit comments