diff --git a/lldb/source/Host/freebsd/Host.cpp b/lldb/source/Host/freebsd/Host.cpp index a558c5771000..aeab780ac453 100644 --- a/lldb/source/Host/freebsd/Host.cpp +++ b/lldb/source/Host/freebsd/Host.cpp @@ -102,7 +102,7 @@ GetFreeBSDProcessArgs(const ProcessInstanceInfoMatch *match_info_ptr, cstr = data.GetCStr(&offset); if (cstr) - proc_args.AppendArgument(cstr); + proc_args.AppendArgument(llvm::StringRef(cstr)); else return true; } diff --git a/lldb/source/Host/linux/ProcessLauncherLinux.cpp b/lldb/source/Host/linux/ProcessLauncherLinux.cpp index 444a8fdd43c3..a769f1aa91b4 100644 --- a/lldb/source/Host/linux/ProcessLauncherLinux.cpp +++ b/lldb/source/Host/linux/ProcessLauncherLinux.cpp @@ -36,7 +36,7 @@ static void FixupEnvironment(Args &env) { for (const char **args = env.GetConstArgumentVector(); *args; ++args) if (::strncmp(path, *args, path_len) == 0) return; - env.AppendArgument("PATH=/system/bin"); + env.AppendArgument(llvm::StringRef("PATH=/system/bin")); #endif }