diff options
author | Kazu Hirata <kazu@google.com> | 2024-01-17 20:22:58 -0800 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2024-01-17 20:22:58 -0800 |
commit | 7e6482b3d8bbc31ddb005dd30cd50ded780a360a (patch) | |
tree | d97eaab59bca672cd6a28866f3fa3bd2351c4a2e /llvm/lib/Support/Path.cpp | |
parent | 7f2408fba3106319f64880794d555edad26d7add (diff) | |
download | llvm-7e6482b3d8bbc31ddb005dd30cd50ded780a360a.zip llvm-7e6482b3d8bbc31ddb005dd30cd50ded780a360a.tar.gz llvm-7e6482b3d8bbc31ddb005dd30cd50ded780a360a.tar.bz2 |
[Support] Use SmallString::operator std::string (NFC)
Diffstat (limited to 'llvm/lib/Support/Path.cpp')
-rw-r--r-- | llvm/lib/Support/Path.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/Path.cpp b/llvm/lib/Support/Path.cpp index c2456dc..9410252 100644 --- a/llvm/lib/Support/Path.cpp +++ b/llvm/lib/Support/Path.cpp @@ -1145,7 +1145,7 @@ void directory_entry::replace_filename(const Twine &Filename, file_type Type, basic_file_status Status) { SmallString<128> PathStr = path::parent_path(Path); path::append(PathStr, Filename); - this->Path = std::string(PathStr.str()); + this->Path = std::string(PathStr); this->Type = Type; this->Status = Status; } |