[compiler-rt] r341903 - [ASan] [Windows] Remove const from _msize function declaration parameter

Martin Storsjo via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 10 23:07:33 PDT 2018


Author: mstorsjo
Date: Mon Sep 10 23:07:32 2018
New Revision: 341903

URL: http://llvm.org/viewvc/llvm-project?rev=341903&view=rev
Log:
[ASan] [Windows] Remove const from _msize function declaration parameter

This function isn't declared with a const parameter anywhere; neither
in MSVC (neither in ucrt or in older msvcrt versions) nor in mingw-w64.

Differential Revision: https://reviews.llvm.org/D51876

Modified:
    compiler-rt/trunk/lib/asan/asan_malloc_win.cc

Modified: compiler-rt/trunk/lib/asan/asan_malloc_win.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_malloc_win.cc?rev=341903&r1=341902&r2=341903&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_malloc_win.cc (original)
+++ compiler-rt/trunk/lib/asan/asan_malloc_win.cc Mon Sep 10 23:07:32 2018
@@ -125,7 +125,7 @@ void *_recalloc_base(void *p, size_t n,
 }
 
 ALLOCATION_FUNCTION_ATTRIBUTE
-size_t _msize(const void *ptr) {
+size_t _msize(void *ptr) {
   GET_CURRENT_PC_BP_SP;
   (void)sp;
   return asan_malloc_usable_size(ptr, pc, bp);




More information about the llvm-commits mailing list