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:
c4fd448
)
Fixing a warning in MSVC (this is also a test commit)
author
Aaron Ballman
<aaron@aaronballman.com>
Sun, 5 Feb 2012 19:43:39 +0000
(19:43 +0000)
committer
Aaron Ballman
<aaron@aaronballman.com>
Sun, 5 Feb 2012 19:43:39 +0000
(19:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149844
91177308
-0d34-0410-b5e6-
96231b3b80d8
runtime/libprofile/CommonProfiling.c
patch
|
blob
|
history
diff --git
a/runtime/libprofile/CommonProfiling.c
b/runtime/libprofile/CommonProfiling.c
index fbc1ef448518b8a7248a9323c8ec88bcf1e379b8..d55f51c5b44ab698552afa395c81f92b29dee531 100644
(file)
--- a/
runtime/libprofile/CommonProfiling.c
+++ b/
runtime/libprofile/CommonProfiling.c
@@
-46,7
+46,7
@@
int save_arguments(int argc, const char **argv) {
* what to do with it.
*/
const char *Arg = argv[1];
- memmove(&argv[1], &argv[2], (argc-1)*sizeof(char*));
+ memmove(
(char**)
&argv[1], &argv[2], (argc-1)*sizeof(char*));
--argc;
if (!strcmp(Arg, "-llvmprof-output")) {
@@
-54,7
+54,7
@@
int save_arguments(int argc, const char **argv) {
puts("-llvmprof-output requires a filename argument!");
else {
OutputFilename = strdup(argv[1]);
- memmove(&argv[1], &argv[2], (argc-1)*sizeof(char*));
+ memmove(
(char**)
&argv[1], &argv[2], (argc-1)*sizeof(char*));
--argc;
}
} else {