[asan] fix Android build (mark asan_malloc_usable_size as an interface function)

llvm-svn: 183651
This commit is contained in:
Kostya Serebryany 2013-06-10 13:28:33 +00:00
parent 340cc5b13d
commit 02062becea
1 changed files with 1 additions and 0 deletions

View File

@ -674,6 +674,7 @@ int asan_posix_memalign(void **memptr, uptr alignment, uptr size,
return 0;
}
SANITIZER_INTERFACE_ATTRIBUTE
uptr asan_malloc_usable_size(void *ptr, StackTrace *stack) {
CHECK(stack);
if (ptr == 0) return 0;