[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 18:03:03 PDT 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rL310330: [asan] Restore dead-code-elimination optimization for Fuchsia (authored by vitalybuka).
Changed prior to commit:
https://reviews.llvm.org/D36430?vs=110094&id=110122#toc
Repository:
rL LLVM
https://reviews.llvm.org/D36430
Files:
compiler-rt/trunk/lib/asan/asan_malloc_linux.cc
Index: compiler-rt/trunk/lib/asan/asan_malloc_linux.cc
===================================================================
--- compiler-rt/trunk/lib/asan/asan_malloc_linux.cc
+++ compiler-rt/trunk/lib/asan/asan_malloc_linux.cc
@@ -32,7 +32,7 @@
static INLINE bool IsInDlsymAllocPool(const void *ptr) {
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]);
}
static void *AllocateFromLocalPool(uptr size_in_bytes) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D36430.110122.patch
Type: text/x-patch
Size: 545 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170808/6722f681/attachment.bin>
More information about the llvm-commits
mailing list