diff options
| author | Martin Storsjo <martin@martin.st> | 2018-09-11 06:07:32 +0000 |
|---|---|---|
| committer | Martin Storsjo <martin@martin.st> | 2018-09-11 06:07:32 +0000 |
| commit | b2b0f859d4e727480906f101098c39a55386501d (patch) | |
| tree | c260b1e24ff81c81e7ecdc90436c56b1d7a27ac2 | |
| parent | 6fc8a564cffd197f34572831640936b90648f9dc (diff) | |
| download | bcm5719-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.cc | 2 |
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); |

