[PATCH] D51876: [ASan] [Windows] Remove const from _msize function declaration parameter
Martin Storsjö via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 10 12:18:19 PDT 2018
mstorsjo created this revision.
mstorsjo added reviewers: rnk, timurrrr.
Herald added subscribers: Sanitizers, kubamracek.
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.
Repository:
rCRT Compiler Runtime
https://reviews.llvm.org/D51876
Files:
lib/asan/asan_malloc_win.cc
Index: lib/asan/asan_malloc_win.cc
===================================================================
--- lib/asan/asan_malloc_win.cc
+++ lib/asan/asan_malloc_win.cc
@@ -125,7 +125,7 @@
}
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);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51876.164716.patch
Type: text/x-patch
Size: 371 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180910/4c250d10/attachment.bin>
More information about the llvm-commits
mailing list