Skip to content

Commit 99ab50b

Browse files
authored
Merge pull request #564 from artemcm/RemoveSwiftPlaceholderModules
Remove references to obsolete '.swiftPlaceholder' module type.
2 parents c45116a + 89c1983 commit 99ab50b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Sources/SWBCore/LibSwiftDriver/LibSwiftDriver.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,9 @@ public final class SwiftModuleDependencyGraph: SwiftGlobalExplicitDependencyGrap
200200
if let modulePath = VirtualPath.lookup(details.compiledModulePath.path).absolutePath {
201201
swiftmodulePaths.append(modulePath.pathString)
202202
}
203-
case .clang, .swiftPlaceholder:
203+
case .clang:
204+
fallthrough
205+
default:
204206
break
205207
}
206208
}
@@ -223,15 +225,13 @@ public final class SwiftModuleDependencyGraph: SwiftGlobalExplicitDependencyGrap
223225
}
224226
fileDependencies.append(contentsOf: moduleInfo.sourceFiles ?? [])
225227
switch moduleInfo.details {
226-
case .swift:
227-
break
228-
case .swiftPlaceholder:
229-
break
230228
case .swiftPrebuiltExternal(let details):
231229
if let modulePath = VirtualPath.lookup(details.compiledModulePath.path).absolutePath {
232230
fileDependencies.append(modulePath.pathString)
233231
}
234-
case .clang:
232+
case .swift, .clang:
233+
fallthrough
234+
default:
235235
break
236236
}
237237
}

0 commit comments

Comments
 (0)