diff options
author | Alexey Samsonov <vonosmas@gmail.com> | 2014-07-01 18:01:20 +0000 |
---|---|---|
committer | Alexey Samsonov <vonosmas@gmail.com> | 2014-07-01 18:01:20 +0000 |
commit | 06ff6cbf4d5b8a34e35363bdde82aa50771312f1 (patch) | |
tree | 7810cfaaa7d55d8dcfdb3fd970d92515dad5fd21 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 9b35cf52d2a88cda5167c9638696adce5b152720 (diff) | |
download | llvm-06ff6cbf4d5b8a34e35363bdde82aa50771312f1.zip llvm-06ff6cbf4d5b8a34e35363bdde82aa50771312f1.tar.gz llvm-06ff6cbf4d5b8a34e35363bdde82aa50771312f1.tar.bz2 |
[TSan] Equalize the behavior of __tsan_get_allocated_size and user_alloc_usable_size.
The former used to crash with a null deref if it was given a not owned pointer,
while the latter returned 0. Now they both return 0. This is still not the best possible
behavior: it is better to print an error report with a stack trace, pointing
to the error in user code, as we do in ASan.
llvm-svn: 212112
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions