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
diff --git a/tools/lli/lli.cpp b/tools/lli/lli.cpp
index 05bf4ec..1cdd91b 100644
--- a/tools/lli/lli.cpp
+++ b/tools/lli/lli.cpp
@@ -536,7 +536,7 @@
           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.