diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2020-01-29 21:14:15 -0800 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2020-01-29 21:16:46 -0800 |
commit | b2924d9956fd9a8ebe09145ff102b12d34c5edf2 (patch) | |
tree | e757cfe0cc2d4ddd8e5c6d6571f08ceb3922e817 /llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp | |
parent | 14a16fae434a86890546e5e0364086e231e7667e (diff) | |
download | llvm-b2924d9956fd9a8ebe09145ff102b12d34c5edf2.zip llvm-b2924d9956fd9a8ebe09145ff102b12d34c5edf2.tar.gz llvm-b2924d9956fd9a8ebe09145ff102b12d34c5edf2.tar.bz2 |
[llvm] Replace SmallStr.str().str() with std::string conversion operator.
Use the std::string conversion operator introduced in
d7049213d0fcda691c9e79f9b41e357198d99738.
Diffstat (limited to 'llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp')
-rw-r--r-- | llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp b/llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp index 16b231f..3ea5312 100644 --- a/llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp +++ b/llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp @@ -96,7 +96,7 @@ static std::string findInputFile(StringRef File, ArrayRef<StringRef> Paths) { SmallString<128> Path = Dir; sys::path::append(Path, File); if (sys::fs::exists(Path)) - return Path.str().str(); + return std::string(Path); } return ""; } |