Hack around incompatible pointer warnings.

llvm-svn: 116671
This commit is contained in:
Benjamin Kramer 2010-10-16 15:43:02 +00:00
parent 1dc34b48dd
commit 2fcb554f5b
1 changed files with 5 additions and 1 deletions

View File

@ -64,7 +64,11 @@ int main(int argc, char** argv) {
memcpy((char **)Args+2, argv+1, sizeof(char*)*argc);
/* Run the JIT. */
execvp(Interp, Args);
#ifndef _WIN32
execvp(Interp, (char **)Args); /* POSIX execvp takes a char *const[]. */
#else
execvp(Interp, Args); /* windows execvp takes a const char *const *. */
#endif
/* if _execv returns, the JIT could not be started. */
fprintf(stderr, "Could not execute the LLVM JIT. Either add 'lli' to your"
" path, or set the\ninterpreter you want to use in the LLVMINTERP "