mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[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:
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user