From b7a66d0faeb1d2838e89c3632ba7835e6c2af6cc Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Fri, 19 Jan 2024 18:54:11 -0800 Subject: [llvm] Use SmallString::operator std::string (NFC) --- llvm/lib/LTO/LTO.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/LTO/LTO.cpp') diff --git a/llvm/lib/LTO/LTO.cpp b/llvm/lib/LTO/LTO.cpp index 6a1e53b..b38c568 100644 --- a/llvm/lib/LTO/LTO.cpp +++ b/llvm/lib/LTO/LTO.cpp @@ -1573,7 +1573,7 @@ std::string lto::getThinLTOOutputFile(StringRef Path, StringRef OldPrefix, llvm::errs() << "warning: could not create directory '" << ParentPath << "': " << EC.message() << '\n'; } - return std::string(NewPath.str()); + return std::string(NewPath); } namespace { -- cgit v1.1