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 @@ -2830,9 +2830,10 @@ 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
- StringRef moduleName = isCxxStdModule (I) ? SwiftContext.Id_CxxStdlib .str () :
2833
+ std::string swiftModuleName = isCxxStdModule (I) ?
2834
+ static_cast <std::string>(SwiftContext.Id_CxxStdlib ) :
2834
2835
I->getFullModuleName ();
2835
- ImportPath::Builder importPath (SwiftContext, moduleName , ' .' );
2836
+ ImportPath::Builder importPath (SwiftContext, swiftModuleName , ' .' );
2836
2837
UnloadedImportedModule importedModule (importPath.copyTo (SwiftContext), ImportKind::Module);
2837
2838
implicitImportInfo.AdditionalUnloadedImports .push_back (importedModule);
2838
2839
}
You can’t perform that action at this time.
0 commit comments