From 6c0b1e75e367e73cc6d1b59d557f513beb34afd0 Mon Sep 17 00:00:00 2001 From: JOE1994 Date: Fri, 13 Sep 2024 06:22:59 -0400 Subject: [llvm][tools] Strip unneeded uses of raw_string_ostream::str() (NFC) Remove unnecessary layer of indirection. --- llvm/tools/llvm-libtool-darwin/llvm-libtool-darwin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/tools/llvm-libtool-darwin/llvm-libtool-darwin.cpp') diff --git a/llvm/tools/llvm-libtool-darwin/llvm-libtool-darwin.cpp b/llvm/tools/llvm-libtool-darwin/llvm-libtool-darwin.cpp index 77ae9b4..3d3f3f0 100644 --- a/llvm/tools/llvm-libtool-darwin/llvm-libtool-darwin.cpp +++ b/llvm/tools/llvm-libtool-darwin/llvm-libtool-darwin.cpp @@ -183,7 +183,7 @@ static Error validateArchitectureName(StringRef ArchitectureName) { return createStringError( std::errc::invalid_argument, "invalid architecture '%s': valid architecture names are %s", - ArchitectureName.str().c_str(), OS.str().c_str()); + ArchitectureName.str().c_str(), Buf.c_str()); } return Error::success(); } -- cgit v1.1