summaryrefslogtreecommitdiff
path: root/tools/llvm-stub
diff options
context:
space:
mode:
Diffstat (limited to 'tools/llvm-stub')
-rw-r--r--tools/llvm-stub/llvm-stub.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/llvm-stub/llvm-stub.c b/tools/llvm-stub/llvm-stub.c
index 366e13c910..f2e478e695 100644
--- a/tools/llvm-stub/llvm-stub.c
+++ b/tools/llvm-stub/llvm-stub.c
@@ -61,7 +61,7 @@ int main(int argc, char** argv) {
Args[1] = strcat(strcpy((char*)malloc(strlen(argv[0])+4), argv[0]), ".bc");
/* The rest of the args are as before. */
- memcpy(Args+2, argv+1, sizeof(char*)*argc);
+ memcpy((char **)Args+2, argv+1, sizeof(char*)*argc);
/* Run the JIT. */
execvp(Interp, (char **)Args);