aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorAlexey Samsonov <vonosmas@gmail.com>2014-07-01 18:01:20 +0000
committerAlexey Samsonov <vonosmas@gmail.com>2014-07-01 18:01:20 +0000
commit06ff6cbf4d5b8a34e35363bdde82aa50771312f1 (patch)
tree7810cfaaa7d55d8dcfdb3fd970d92515dad5fd21 /clang/lib/Frontend/CompilerInvocation.cpp
parent9b35cf52d2a88cda5167c9638696adce5b152720 (diff)
downloadllvm-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