Skip to content

Commit 765c3ce

Browse files
author
Matt Davis
committed
[clangimporter] Fix a StringRef to std::string conversion.
Explictly call StringRef::str, the implicit conversion operator was removed in an earlier commit: (See llvm/llvm-project@adcd02683856c)
1 parent c98c862 commit 765c3ce

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)