From bdd455f0d5fbe36eaaf6ac8160349bbb28d82df7 Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Mon, 7 Aug 2017 09:08:44 +0000 Subject: [PATCH] [asan] Return sizeof missed by r309914 llvm-svn: 310244 --- compiler-rt/lib/asan/asan_malloc_linux.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler-rt/lib/asan/asan_malloc_linux.cc b/compiler-rt/lib/asan/asan_malloc_linux.cc index a094d6eecdec..8222c6d70084 100644 --- a/compiler-rt/lib/asan/asan_malloc_linux.cc +++ b/compiler-rt/lib/asan/asan_malloc_linux.cc @@ -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) {