[ImportResolution] Remove redundant "Swift" module import

Import resolution now adds the Swift module to the list of imports, so
we no longer need to add it manually.
This commit is contained in:
Henrik G. Olsson
2025-08-23 14:59:45 -07:00
parent 0ea5677aa1
commit 33634becd8
4 changed files with 0 additions and 24 deletions

View File

@@ -334,12 +334,6 @@ void swift::performImportResolutionForClangMacroBuffer(SourceFile &SF) {
// `getWrapperForModule` has already declared all the implicit clang module
// imports we need
ImportResolver resolver(SF);
// FIXME: This is a hack that we shouldn't need, but be sure that we can
// see the Swift standard library.
if (auto stdlib = SF.getASTContext().getStdlibModule())
resolver.addImplicitImport(stdlib);
SF.setImports(resolver.getFinishedImports());
SF.setImportedUnderlyingModule(resolver.getUnderlyingClangModule());