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 9066fb5c43
commit b97841e981

View File

@ -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 {