mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[ClangImporter] Avoid unneeded copy for getExportedModuleName
std::string -> StringRef of long-lived backing storage. No functionality change.
This commit is contained in:
@@ -1149,7 +1149,7 @@ static bool isReExportedToModule(const ValueDecl *value,
|
||||
= dyn_cast<ClangModuleUnit>(valueDC->getModuleScopeContext());
|
||||
if (!fromClangModule)
|
||||
return false;
|
||||
std::string exportedName = fromClangModule->getExportedModuleName();
|
||||
StringRef exportedName = fromClangModule->getExportedModuleName();
|
||||
|
||||
auto toClangModule
|
||||
= dyn_cast<ClangModuleUnit>(expectedModule->getFiles().front());
|
||||
|
||||
Reference in New Issue
Block a user