Skip to content

Commit 663b658

Browse files
author
Joe Shajrawi
authored
Merge pull request #6416 from apple/fix_long_tests
Revert "[sil] When printing a SILModule, if the SILModule is the stdlib, don't import the stdlib."
2 parents 1cf2ba6 + 47b206f commit 663b658

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

lib/SIL/SILPrinter.cpp

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2088,13 +2088,8 @@ void SILModule::print(SILPrintContext &PrintCtx, Module *M,
20882088
break;
20892089
}
20902090

2091-
OS << "\n\nimport Builtin\n";
2092-
2093-
// If we are compiling stdlib, do not try to import ourselves
2094-
if (!M->isStdlibModule())
2095-
OS << "import " << STDLIB_NAME << "\n";
2096-
2097-
OS << "import SwiftShims" << "\n\n";
2091+
OS << "\n\nimport Builtin\nimport " << STDLIB_NAME
2092+
<< "\nimport SwiftShims" << "\n\n";
20982093

20992094
// Print the declarations and types from the origin module, unless we're not
21002095
// in whole-module mode.

0 commit comments

Comments
 (0)