Try to fix freebsd and android builds.

llvm-svn: 281922
This commit is contained in:
Zachary Turner 2016-09-19 18:03:54 +00:00
parent c991709f46
commit 92b146e5fa
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}

View File

@ -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
}