From: Jordan Rupprecht Date: Mon, 12 Aug 2019 14:21:51 +0000 (+0000) Subject: [llvm-ar][NFC] Fix buildbot X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a44a1a275d42a4b2959e215c01bdc21b0434a8b5;p=llvm [llvm-ar][NFC] Fix buildbot git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368578 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/llvm-ar/llvm-ar.cpp b/tools/llvm-ar/llvm-ar.cpp index 0817e2db968..c83a6798bcc 100644 --- a/tools/llvm-ar/llvm-ar.cpp +++ b/tools/llvm-ar/llvm-ar.cpp @@ -476,7 +476,7 @@ static void doDisplayTable(StringRef Name, const object::Archive::Child &C) { static std::string normalizePath(StringRef Path) { return CompareFullPath ? sys::path::convert_to_slash(Path) - : sys::path::filename(Path); + : std::string(sys::path::filename(Path)); } // Implement the 'x' operation. This function extracts files back to the file