projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
195c71b
)
Silence MSVC warning.
author
Benjamin Kramer
<benny.kra@googlemail.com>
Tue, 11 Aug 2009 11:01:19 +0000
(11:01 +0000)
committer
Benjamin Kramer
<benny.kra@googlemail.com>
Tue, 11 Aug 2009 11:01:19 +0000
(11:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78660
91177308
-0d34-0410-b5e6-
96231b3b80d8
tools/llvm-stub/llvm-stub.c
patch
|
blob
|
history
diff --git
a/tools/llvm-stub/llvm-stub.c
b/tools/llvm-stub/llvm-stub.c
index 366e13c9102353fbd5841b3fe6be6d21e514b7f8..f2e478e69583b85d66f2a22ce4c08d14f8351442 100644
(file)
--- 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);