Author: jingham
Date: Fri Sep 23 17:36:00 2016
New Revision: 282311

URL: http://llvm.org/viewvc/llvm-project?rev=282311&view=rev
Log:
Mutatis mutandis for char * -> StringRef. 

Modified:
    lldb/trunk/source/Host/macosx/Host.mm

Modified: lldb/trunk/source/Host/macosx/Host.mm
URL: 
http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/macosx/Host.mm?rev=282311&r1=282310&r2=282311&view=diff
==============================================================================
--- lldb/trunk/source/Host/macosx/Host.mm (original)
+++ lldb/trunk/source/Host/macosx/Host.mm Fri Sep 23 17:36:00 2016
@@ -1156,19 +1156,19 @@ static Error LaunchProcessXPC(const char
   xpc_dictionary_set_int64(message, LauncherXPCServicePosixspawnFlagsKey,
                            Host::GetPosixspawnFlags(launch_info));
   const FileAction *file_action = launch_info.GetFileActionForFD(STDIN_FILENO);
-  if (file_action && file_action->GetPath()) {
+  if (file_action && !file_action->GetPath().empty()) {
     xpc_dictionary_set_string(message, LauncherXPCServiceStdInPathKeyKey,
-                              file_action->GetPath());
+                              file_action->GetPath().str().c_str());
   }
   file_action = launch_info.GetFileActionForFD(STDOUT_FILENO);
-  if (file_action && file_action->GetPath()) {
+  if (file_action && !file_action->GetPath().empty()) {
     xpc_dictionary_set_string(message, LauncherXPCServiceStdOutPathKeyKey,
-                              file_action->GetPath());
+                              file_action->GetPath().str().c_str());
   }
   file_action = launch_info.GetFileActionForFD(STDERR_FILENO);
-  if (file_action && file_action->GetPath()) {
+  if (file_action && !file_action->GetPath().empty()) {
     xpc_dictionary_set_string(message, LauncherXPCServiceStdErrPathKeyKey,
-                              file_action->GetPath());
+                              file_action->GetPath().str().c_str());
   }
 
   xpc_object_t reply =


_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to