[asan] fix Android build (mark asan_malloc_usable_size as an interface function)
llvm-svn: 183651
This commit is contained in:
parent
340cc5b13d
commit
02062becea
|
@ -674,6 +674,7 @@ int asan_posix_memalign(void **memptr, uptr alignment, uptr size,
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SANITIZER_INTERFACE_ATTRIBUTE
|
||||||
uptr asan_malloc_usable_size(void *ptr, StackTrace *stack) {
|
uptr asan_malloc_usable_size(void *ptr, StackTrace *stack) {
|
||||||
CHECK(stack);
|
CHECK(stack);
|
||||||
if (ptr == 0) return 0;
|
if (ptr == 0) return 0;
|
||||||
|
|
Loading…
Reference in New Issue