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(
2799
2799
// Make sure that synthesized Swift code in the clang module wrapper
2800
2800
// (e.g. _SwiftifyImport macro expansions) can access the same symbols as
2801
2801
// 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, ' .' );
2803
2805
UnloadedImportedModule importedModule (importPath.copyTo (SwiftContext), ImportKind::Module);
2804
2806
implicitImportInfo.AdditionalUnloadedImports .push_back (importedModule);
2805
2807
}
You can’t perform that action at this time.
0 commit comments