]> granicus.if.org Git - llvm/commitdiff
[llvm-ar][NFC] Fix buildbot
authorJordan Rupprecht <rupprecht@google.com>
Mon, 12 Aug 2019 14:21:51 +0000 (14:21 +0000)
committerJordan Rupprecht <rupprecht@google.com>
Mon, 12 Aug 2019 14:21:51 +0000 (14:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368578 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvm-ar/llvm-ar.cpp

index 0817e2db968e3aa2cd4b84ea57627972cbb674fc..c83a6798bcc1c7123d43dad018eabb2ecbaa6966 100644 (file)
@@ -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