Fix build on Ubuntu.
authorZachary Turner <zturner@google.com>
Fri, 23 Sep 2016 22:27:03 +0000 (22:27 +0000)
committerZachary Turner <zturner@google.com>
Fri, 23 Sep 2016 22:27:03 +0000 (22:27 +0000)
This was in some code that was #ifdef'd out on Windows, so I
didn't see it.

llvm-svn: 282309

lldb/source/Host/common/Host.cpp

index bd85c98..05120f4 100644 (file)
@@ -942,15 +942,15 @@ bool Host::AddPosixSpawnFileAction(void *_file_actions, const FileAction *info,
       if (oflag & O_CREAT)
         mode = 0640;
 
-      error.SetError(
-          ::posix_spawn_file_actions_addopen(file_actions, info->GetFD(),
-                                             info->GetPath(), oflag, mode),
-          eErrorTypePOSIX);
+      error.SetError(::posix_spawn_file_actions_addopen(
+                         file_actions, info->GetFD(),
+                         info->GetPath().str().c_str(), oflag, mode),
+                     eErrorTypePOSIX);
       if (error.Fail() || log)
         error.PutToLog(log, "posix_spawn_file_actions_addopen (action=%p, "
                             "fd=%i, path='%s', oflag=%i, mode=%i)",
                        static_cast<void *>(file_actions), info->GetFD(),
-                       info->GetPath(), oflag, mode);
+                       info->GetPath().str().c_str(), oflag, mode);
     }
     break;
   }