[asan] Return sizeof missed by r309914

llvm-svn: 310244
This commit is contained in:
Vitaly Buka 2017-08-07 09:08:44 +00:00
parent 7dffb9bfa6
commit bdd455f0d5
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ static uptr alloc_memory_for_dlsym[kDlsymAllocPoolSize];
static INLINE bool IsInDlsymAllocPool(const void *ptr) {
uptr off = (uptr)ptr - (uptr)alloc_memory_for_dlsym;
return off < allocated_for_dlsym;
return off < sizeof(alloc_memory_for_dlsym);
}
static void *AllocateFromLocalPool(uptr size_in_bytes) {