From b2924d9956fd9a8ebe09145ff102b12d34c5edf2 Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Wed, 29 Jan 2020 21:14:15 -0800 Subject: [llvm] Replace SmallStr.str().str() with std::string conversion operator. Use the std::string conversion operator introduced in d7049213d0fcda691c9e79f9b41e357198d99738. --- llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp') 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 Paths) { SmallString<128> Path = Dir; sys::path::append(Path, File); if (sys::fs::exists(Path)) - return Path.str().str(); + return std::string(Path); } return ""; } -- cgit v1.1