[PATCH] D34310: [Sanitizers] Move cached allocator_may_return_null flag to sanitizer_allocator
Aleksey Shlyapnikov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 16 18:04:25 PDT 2017
alekseyshl marked an inline comment as done.
alekseyshl added inline comments.
================
Comment at: lib/asan/asan_allocator.cc:425
+ if (!allocated)
+ return nullptr;
----------------
eugenis wrote:
> why?
ReturnNullOrDieOnOOM condition is enforced in CombinedAllocator now, so all sanitizers can benefit from it.
https://reviews.llvm.org/D34310
More information about the llvm-commits
mailing list