File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -588,8 +588,9 @@ void ABIDependencyEvaluator::computeABIDependenciesForClangModule(
588588 }
589589 if (import ->isNonSwiftModule ()
590590 && module ->getTopLevelModule () == import ->getTopLevelModule ()
591- && !import ->findUnderlyingClangModule ()
592- ->isSubModuleOf (module ->findUnderlyingClangModule ())) {
591+ && (module == import
592+ || !import ->findUnderlyingClangModule ()
593+ ->isSubModuleOf (module ->findUnderlyingClangModule ()))) {
593594 continue ;
594595 }
595596 computeABIDependenciesForModule (import );
Original file line number Diff line number Diff line change 11// Check that this doesn't crash due to a self-cycle. rdar://67435472
2- // RUN: not --crash %target-swift-frontend %s -emit-module -o /dev/null -emit-loaded-module-trace-path /dev/null -I %S/Inputs/imported_modules/SelfImport
2+ // RUN: %target-swift-frontend %s -emit-module -o /dev/null -emit-loaded-module-trace-path /dev/null -I %S/Inputs/imported_modules/SelfImport
33
44import Outer
You can’t perform that action at this time.
0 commit comments