aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/LTO/LTO.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2024-01-19 18:54:11 -0800
committerKazu Hirata <kazu@google.com>2024-01-19 18:54:11 -0800
commitb7a66d0faeb1d2838e89c3632ba7835e6c2af6cc (patch)
tree95351026452241df6e74eee6623af3e90104861c /llvm/lib/LTO/LTO.cpp
parentc0396e15c348b17b6de7005ee057160812e29ad8 (diff)
downloadllvm-b7a66d0faeb1d2838e89c3632ba7835e6c2af6cc.zip
llvm-b7a66d0faeb1d2838e89c3632ba7835e6c2af6cc.tar.gz
llvm-b7a66d0faeb1d2838e89c3632ba7835e6c2af6cc.tar.bz2
[llvm] Use SmallString::operator std::string (NFC)
Diffstat (limited to 'llvm/lib/LTO/LTO.cpp')
-rw-r--r--llvm/lib/LTO/LTO.cpp2
1 files changed, 1 insertions, 1 deletions
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 {