summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/tools/llvm-ar/llvm-ar.cpp2
1 files changed, 1 insertions, 1 deletions
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
OpenPOWER on IntegriCloud