Skip to content

Commit ea81e26

Browse files
authored
Merge pull request #33180 from artemcm/StringRefFix
Use .str() when converting StringRef to std::string in ModuleInterfaceLoader
2 parents 143fcdf + fd96bbd commit ea81e26

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/swift/Frontend/ModuleInterfaceLoader.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -243,11 +243,11 @@ class ExplicitModuleMapParser {
243243
if (key == "moduleName") {
244244
moduleName = val;
245245
} else if (key == "modulePath") {
246-
result.modulePath = val;
246+
result.modulePath = val.str();
247247
} else if (key == "docPath") {
248-
result.moduleDocPath = val;
248+
result.moduleDocPath = val.str();
249249
} else if (key == "sourceInfoPath") {
250-
result.moduleSourceInfoPath = val;
250+
result.moduleSourceInfoPath = val.str();
251251
} else {
252252
// Being forgiving for future fields.
253253
continue;

0 commit comments

Comments
 (0)