File tree 2 files changed +4
-2
lines changed 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -131,7 +131,9 @@ class PlaceholderSwiftModuleScanner : public ModuleDependencyScanner {
131
131
132
132
// FIXME: Find a better place for this map to live, to avoid
133
133
// doing the parsing on every module.
134
- parsePlaceholderModuleMap (PlaceholderDependencyModuleMap);
134
+ if (!PlaceholderDependencyModuleMap.empty ()) {
135
+ parsePlaceholderModuleMap (PlaceholderDependencyModuleMap);
136
+ }
135
137
}
136
138
137
139
std::error_code findModuleFilesInDirectory (
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ import SubE
67
67
// CHECK-NEXT: "-target",
68
68
// CHECK-NEXT: "-Xcc",
69
69
// CHECK: "-fapinotes-swift-version=4"
70
-
70
+ // CHECK-NOT: "error: cannot open Swift placeholder dependency module map from"
71
71
// CHECK: "bridgingHeader":
72
72
// CHECK-NEXT: "path":
73
73
// CHECK-SAME: Bridging.h
You can’t perform that action at this time.
0 commit comments