[PATCH] D31295: Add free_on_realloc_zero=true flag for compatibility with allocators which allow a realloc(p, 0) and don't free the pointer.

Kostya Serebryany via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 23 12:05:24 PDT 2017


kcc added a reviewer: alekseyshl.
kcc added a comment.

I am horrified by the amount of flags we already have, and would like to reduce it, not increase it.  
Can you please explain in more detaild why anyone would need this behavior and how this behavior matches the C/C++ standard behavior?


https://reviews.llvm.org/D31295





More information about the llvm-commits mailing list