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 @@ -2802,7 +2802,9 @@ ClangModuleUnit *ClangImporter::Implementation::getWrapperForModule(
2802
2802
// Make sure that synthesized Swift code in the clang module wrapper
2803
2803
// (e.g. _SwiftifyImport macro expansions) can access the same symbols as
2804
2804
// if it were actually in the clang module
2805
- ImportPath::Builder importPath (SwiftContext, I->getFullModuleName (), ' .' );
2805
+ StringRef moduleName = isCxxStdModule (I) ? SwiftContext.Id_CxxStdlib .str () :
2806
+ I->getFullModuleName ();
2807
+ ImportPath::Builder importPath (SwiftContext, moduleName, ' .' );
2806
2808
UnloadedImportedModule importedModule (importPath.copyTo (SwiftContext), ImportKind::Module);
2807
2809
implicitImportInfo.AdditionalUnloadedImports .push_back (importedModule);
2808
2810
}
You can’t perform that action at this time.
0 commit comments