File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -2799,9 +2799,10 @@ 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
- StringRef moduleName = isCxxStdModule (I) ? SwiftContext.Id_CxxStdlib .str () :
2802
+ std::string swiftModuleName = isCxxStdModule (I) ?
2803
+ static_cast <std::string>(SwiftContext.Id_CxxStdlib ) :
2803
2804
I->getFullModuleName ();
2804
- ImportPath::Builder importPath (SwiftContext, moduleName , ' .' );
2805
+ ImportPath::Builder importPath (SwiftContext, swiftModuleName , ' .' );
2805
2806
UnloadedImportedModule importedModule (importPath.copyTo (SwiftContext), ImportKind::Module);
2806
2807
implicitImportInfo.AdditionalUnloadedImports .push_back (importedModule);
2807
2808
}
You can’t perform that action at this time.
0 commit comments