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

Roland McGrath via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 2 14:37:36 PDT 2017


mcgrathr added inline comments.


================
Comment at: lib/asan/asan_malloc_linux.cc:56
+#else
+  return UNLIKELY(asan_init_is_running);
+#endif
----------------
vitalybuka wrote:
> Why do you need to ifdef this?
> I'd expect that asan_init_is_running will be false on fuchsia anyway
It will always be false at runtime, but the compiler can't tell that statically.
I want the dead code (and its static data bloat) to be compiled out, which it is with this.


https://reviews.llvm.org/D36190





More information about the llvm-commits mailing list