summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Storsjo <martin@martin.st>2018-09-11 06:07:32 +0000
committerMartin Storsjo <martin@martin.st>2018-09-11 06:07:32 +0000
commitb2b0f859d4e727480906f101098c39a55386501d (patch)
treec260b1e24ff81c81e7ecdc90436c56b1d7a27ac2
parent6fc8a564cffd197f34572831640936b90648f9dc (diff)
downloadbcm5719-llvm-b2b0f859d4e727480906f101098c39a55386501d.tar.gz
bcm5719-llvm-b2b0f859d4e727480906f101098c39a55386501d.zip
[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 llvm-svn: 341903
-rw-r--r--compiler-rt/lib/asan/asan_malloc_win.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/asan/asan_malloc_win.cc b/compiler-rt/lib/asan/asan_malloc_win.cc
index efa05824397..04ba5300628 100644
--- a/compiler-rt/lib/asan/asan_malloc_win.cc
+++ b/compiler-rt/lib/asan/asan_malloc_win.cc
@@ -125,7 +125,7 @@ void *_recalloc_base(void *p, size_t n, size_t elem_size) {
}
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);
OpenPOWER on IntegriCloud