summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/AArch64/Disassembler
diff options
context:
space:
mode:
authorKostya Kortchinsky <kostyak@google.com>2018-07-03 19:03:46 +0000
committerKostya Kortchinsky <kostyak@google.com>2018-07-03 19:03:46 +0000
commite64a81475c3e705d35cf74c451ced12ee0dc9ffb (patch)
tree7254cbe1ad664302d60a2d51722c4f927ba89edb /llvm/lib/Target/AArch64/Disassembler
parent181aa26eb87070a109ab7173c2d7916a448c2100 (diff)
downloadbcm5719-llvm-e64a81475c3e705d35cf74c451ced12ee0dc9ffb.tar.gz
bcm5719-llvm-e64a81475c3e705d35cf74c451ced12ee0dc9ffb.zip
[scudo] Get rid of builtin-declaration-mismatch warnings
Summary: The C interceptors were using `SIZE_T` defined in the interception library as a `__sanitizer::uptr`. On some 32-bit platforms, this lead to the following warning: ``` warning: declaration of ‘void* malloc(SIZE_T)’ conflicts with built-in declaration ‘void* malloc(unsigned int)’ [-Wbuiltin-declaration-mismatch] INTERCEPTOR_ATTRIBUTE void *malloc(SIZE_T size) { ``` `__sanitizer::uptr` is indeed defined as an `unsigned long` on those. So just include `stddef.h` and use `size_t` instead. Reviewers: alekseyshl Reviewed By: alekseyshl Subscribers: delcypher, llvm-commits, #sanitizers Differential Revision: https://reviews.llvm.org/D48885 llvm-svn: 336221
Diffstat (limited to 'llvm/lib/Target/AArch64/Disassembler')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud