diff options
| author | Kuba Brecka <kuba.brecka@gmail.com> | 2016-04-30 07:14:41 +0000 |
|---|---|---|
| committer | Kuba Brecka <kuba.brecka@gmail.com> | 2016-04-30 07:14:41 +0000 |
| commit | 9ccde5ace4c1905f328ca48a3207e2b5ba756533 (patch) | |
| tree | d580500fb539fae93c9f53498197bb598e701655 /llvm/test/Transforms/ConstantMerge/merge-both.ll | |
| parent | eb5bd02a7ec2c0a5d10d8f68c5c40c00776824fb (diff) | |
| download | bcm5719-llvm-9ccde5ace4c1905f328ca48a3207e2b5ba756533.tar.gz bcm5719-llvm-9ccde5ace4c1905f328ca48a3207e2b5ba756533.zip | |
[tsan] Return 0 from malloc_size for non-malloc'd pointers
In http://reviews.llvm.org/D19100, I introduced a bug: On OS X, existing programs rely on malloc_size() to detect whether a pointer comes from heap memory (malloc_size returns non-zero) or not. We have to distinguish between a zero-sized allocation (where we need to return 1 from malloc_size, due to other binary compatibility reasons, see http://reviews.llvm.org/D19100), and pointers that are not returned from malloc at all.
Differential Revision: http://reviews.llvm.org/D19653
llvm-svn: 268157
Diffstat (limited to 'llvm/test/Transforms/ConstantMerge/merge-both.ll')
0 files changed, 0 insertions, 0 deletions

