[llvm-commits] [llvm] r149844 - /llvm/trunk/runtime/libprofile/CommonProfiling.c
Aaron Ballman
aaron at aaronballman.com
Sun Feb 5 11:43:40 PST 2012
Author: aaronballman
Date: Sun Feb 5 13:43:39 2012
New Revision: 149844
URL: http://llvm.org/viewvc/llvm-project?rev=149844&view=rev
Log:
Fixing a warning in MSVC (this is also a test commit)
Modified:
llvm/trunk/runtime/libprofile/CommonProfiling.c
Modified: llvm/trunk/runtime/libprofile/CommonProfiling.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/runtime/libprofile/CommonProfiling.c?rev=149844&r1=149843&r2=149844&view=diff
==============================================================================
--- llvm/trunk/runtime/libprofile/CommonProfiling.c (original)
+++ llvm/trunk/runtime/libprofile/CommonProfiling.c Sun Feb 5 13:43:39 2012
@@ -46,7 +46,7 @@
* 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 @@
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 {
More information about the llvm-commits
mailing list