1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

Fixing a warning in MSVC (this is also a test commit)

llvm-svn: 149844
This commit is contained in:
Aaron Ballman 2012-02-05 19:43:39 +00:00
parent 57f5ba6365
commit 5ea088c8c2

View File

@ -46,7 +46,7 @@ int save_arguments(int argc, const char **argv) {
* what to do with it. * what to do with it.
*/ */
const char *Arg = argv[1]; 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; --argc;
if (!strcmp(Arg, "-llvmprof-output")) { if (!strcmp(Arg, "-llvmprof-output")) {
@ -54,7 +54,7 @@ int save_arguments(int argc, const char **argv) {
puts("-llvmprof-output requires a filename argument!"); puts("-llvmprof-output requires a filename argument!");
else { else {
OutputFilename = strdup(argv[1]); OutputFilename = strdup(argv[1]);
memmove(&argv[1], &argv[2], (argc-1)*sizeof(char*)); memmove((char**)&argv[1], &argv[2], (argc-1)*sizeof(char*));
--argc; --argc;
} }
} else { } else {