From 6b831983fe187045d057bb7ab79475a9ee4b27df Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Tue, 11 Aug 2009 11:01:19 +0000 Subject: [PATCH] Silence MSVC warning. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78660 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/llvm-stub/llvm-stub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/llvm-stub/llvm-stub.c b/tools/llvm-stub/llvm-stub.c index 366e13c9102..f2e478e6958 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); -- 2.34.1