Skip to content

Commit

Permalink
Fixing a warning in MSVC (this is also a test commit)
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149844 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
AaronBallman committed Feb 5, 2012
1 parent c4fd448 commit 17da6e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions runtime/libprofile/CommonProfiling.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,15 @@ 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")) {
if (argc == 1)
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 {
Expand Down

0 comments on commit 17da6e7

Please sign in to comment.