Const-correctness.
[oota-llvm.git] / tools / llvm-stub / llvm-stub.c
index 366e13c9102353fbd5841b3fe6be6d21e514b7f8..f2e478e69583b85d66f2a22ce4c08d14f8351442 100644 (file)
@@ -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);