Skip to content

Commit 4c691ec

Browse files
authored
Merge pull request swiftlang#32060 from enferex/fix-strref-master-1
[clangimporter] Fix a StringRef to std::string conversion.
2 parents 0562a83 + 765c3ce commit 4c691ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ClangImporter/ClangModuleDependencyScanner.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ void ClangImporter::recordModuleDependencies(
254254
swiftArgs.push_back("-Xcc");
255255
swiftArgs.push_back("-Xclang");
256256
swiftArgs.push_back("-Xcc");
257-
swiftArgs.push_back(arg);
257+
swiftArgs.push_back(arg.str());
258258
};
259259
// Add all args inheritted from creating the importer.
260260
for (auto arg: cc1Args) {

0 commit comments

Comments
 (0)