diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2010-10-16 15:43:02 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2010-10-16 15:43:02 +0000 |
commit | cb2caf738023c0a03f5df1b909431129a16e2c54 (patch) | |
tree | 758d1fcb7809bf8611ee08a843f218390cdb73cc /tools | |
parent | af81235ef96a7a005b7fdfe5a64cce30df3d820d (diff) | |
download | external_llvm-cb2caf738023c0a03f5df1b909431129a16e2c54.zip external_llvm-cb2caf738023c0a03f5df1b909431129a16e2c54.tar.gz external_llvm-cb2caf738023c0a03f5df1b909431129a16e2c54.tar.bz2 |
Hack around incompatible pointer warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116671 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r-- | tools/llvm-stub/llvm-stub.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/llvm-stub/llvm-stub.c b/tools/llvm-stub/llvm-stub.c index f1f12d0..31c2d09 100644 --- a/tools/llvm-stub/llvm-stub.c +++ b/tools/llvm-stub/llvm-stub.c @@ -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 " |