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 @@ -2802,9 +2802,10 @@ 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
- StringRef moduleName = isCxxStdModule (I) ? SwiftContext.Id_CxxStdlib .str () :
2805
+ std::string swiftModuleName = isCxxStdModule (I) ?
2806
+ static_cast <std::string>(SwiftContext.Id_CxxStdlib ) :
2806
2807
I->getFullModuleName ();
2807
- ImportPath::Builder importPath (SwiftContext, moduleName , ' .' );
2808
+ ImportPath::Builder importPath (SwiftContext, swiftModuleName , ' .' );
2808
2809
UnloadedImportedModule importedModule (importPath.copyTo (SwiftContext), ImportKind::Module);
2809
2810
implicitImportInfo.AdditionalUnloadedImports .push_back (importedModule);
2810
2811
}
You can’t perform that action at this time.
0 commit comments