[PATCH] D36430: [asan] Restore dead-code-elimination optimization for Fuchsia
Vitaly Buka via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 7 15:34:41 PDT 2017
vitalybuka added inline comments.
================
Comment at: lib/asan/asan_malloc_linux.cc:35
uptr off = (uptr)ptr - (uptr)alloc_memory_for_dlsym;
- return off < sizeof(alloc_memory_for_dlsym);
+ return off < allocated_for_dlsym * sizeof(alloc_memory_for_dlsym[0]);
}
----------------
Maybe just to guard #if !defined(SANITIZER_FUCHSIA)
from line 29 to 64, and create empty implementation in #else section
Repository:
rL LLVM
https://reviews.llvm.org/D36430
More information about the llvm-commits
mailing list