File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -2799,7 +2799,9 @@ ClangModuleUnit *ClangImporter::Implementation::getWrapperForModule(
27992799 // Make sure that synthesized Swift code in the clang module wrapper
28002800 // (e.g. _SwiftifyImport macro expansions) can access the same symbols as
28012801 // if it were actually in the clang module
2802- ImportPath::Builder importPath (SwiftContext, I->getFullModuleName (), ' .' );
2802+ StringRef moduleName = isCxxStdModule (I) ? SwiftContext.Id_CxxStdlib .str () :
2803+ I->getFullModuleName ();
2804+ ImportPath::Builder importPath (SwiftContext, moduleName, ' .' );
28032805 UnloadedImportedModule importedModule (importPath.copyTo (SwiftContext), ImportKind::Module);
28042806 implicitImportInfo.AdditionalUnloadedImports .push_back (importedModule);
28052807 }
You can’t perform that action at this time.
0 commit comments