From d34a4d60f04f60352c1f388a129d8108584177d0 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Wed, 2 Oct 2013 21:33:12 +0000 Subject: [PATCH] Pass the resolved lli-child-target executable name to execv, rather than searching $PATH for it then blindly executing it from $PWD anyway. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191856 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/lli/lli.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/lli/lli.cpp b/tools/lli/lli.cpp index 05bf4ec1913..1cdd91b6938 100644 --- a/tools/lli/lli.cpp +++ b/tools/lli/lli.cpp @@ -536,7 +536,7 @@ int main(int argc, char **argv, char * const *envp) { errs() << "Unable to find child target: '\''" << MCJITRemoteProcess << "\'\n"; return -1; } - Target.reset(RemoteTarget::createExternalRemoteTarget(MCJITRemoteProcess)); + Target.reset(RemoteTarget::createExternalRemoteTarget(ChildEXE)); } } else { // No child process name provided, use simulated remote execution.