From e011a5b4edf828dcaaa4ab5552b71d2bacaaecab Mon Sep 17 00:00:00 2001 From: Jordan Rupprecht Date: Mon, 12 Aug 2019 14:21:51 +0000 Subject: [llvm-ar][NFC] Fix buildbot llvm-svn: 368578 --- llvm/tools/llvm-ar/llvm-ar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/tools/llvm-ar/llvm-ar.cpp') diff --git a/llvm/tools/llvm-ar/llvm-ar.cpp b/llvm/tools/llvm-ar/llvm-ar.cpp index 0817e2db968..c83a6798bcc 100644 --- a/llvm/tools/llvm-ar/llvm-ar.cpp +++ b/llvm/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 -- cgit v1.2.3