[PATCH] D36190: [asan] Allocator support for Fuchsia

Aleksey Shlyapnikov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 2 16:05:57 PDT 2017


alekseyshl accepted this revision.
alekseyshl added inline comments.
This revision is now accepted and ready to land.


================
Comment at: lib/asan/asan_malloc_linux.cc:46
 
+static bool MaybeInDlsym() {
+  // Fuchsia doesn't use dlsym-based interceptors.
----------------
Make it inline.


================
Comment at: lib/asan/asan_malloc_linux.cc:48
+  // Fuchsia doesn't use dlsym-based interceptors.
+  return !SANITIZER_FUCHSIA && UNLIKELY(asan_init_is_running);
+}
----------------
UNLIKELY is not required here.


https://reviews.llvm.org/D36190





More information about the llvm-commits mailing list