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