summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorFilipe Cabecinhas <me@filcab.net>2017-03-29 18:17:22 +0000
committerFilipe Cabecinhas <me@filcab.net>2017-03-29 18:17:22 +0000
commite144b723727f4264cc0a22656191156cf1b8edb1 (patch)
tree9208c90b3b7cf79dda87f1232296178400f1349e /clang/lib/CodeGen/CodeGenFunction.cpp
parent762f928a7a64133a1c5dab73d469440bb2e21b26 (diff)
downloadbcm5719-llvm-e144b723727f4264cc0a22656191156cf1b8edb1.tar.gz
bcm5719-llvm-e144b723727f4264cc0a22656191156cf1b8edb1.zip
Add allocator_frees_and_returns_null_on_realloc_zero=false flag for compatibility with allocators which allow a realloc(p, 0) and don't free the pointer.
Summary: I know of two implementations that do this (ASan is not protecting against accessing the returned memory for now, just like malloc(0)): SIE libc on the PS4 dlmalloc has a flag for this This allows us to properly support this behaviour. Reviewers: vsk, kcc Subscribers: llvm-commits, kubamracek Differential Revision: https://reviews.llvm.org/D31295 llvm-svn: 299016
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud