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(
588
588
}
589
589
if (import ->isNonSwiftModule ()
590
590
&& module ->getTopLevelModule () == import ->getTopLevelModule ()
591
- && !import ->findUnderlyingClangModule ()
592
- ->isSubModuleOf (module ->findUnderlyingClangModule ())) {
591
+ && (module == import
592
+ || !import ->findUnderlyingClangModule ()
593
+ ->isSubModuleOf (module ->findUnderlyingClangModule ()))) {
593
594
continue ;
594
595
}
595
596
computeABIDependenciesForModule (import );
Original file line number Diff line number Diff line change 1
1
// 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
3
3
4
4
import Outer
You can’t perform that action at this time.
0 commit comments