diff options
author | Walter Lee <waltl@google.com> | 2018-05-21 20:43:36 +0000 |
---|---|---|
committer | Walter Lee <waltl@google.com> | 2018-05-21 20:43:36 +0000 |
commit | ead3b3487bf06d83bfef1e9536e38686a0c9533b (patch) | |
tree | b45ce11291c98913a97aefcc4f50c66e28bbd62a /llvm/lib/LTO/LTOBackend.cpp | |
parent | b8346e3f0796513f862c05e2db38e63f8429e222 (diff) | |
download | llvm-ead3b3487bf06d83bfef1e9536e38686a0c9533b.zip llvm-ead3b3487bf06d83bfef1e9536e38686a0c9533b.tar.gz llvm-ead3b3487bf06d83bfef1e9536e38686a0c9533b.tar.bz2 |
[asan] Make GetCurrentThread RTEMS-friendly
On RTEMS, system and user code all live in a single binary and address
space. There is no clean separation, and instrumented code may
execute before the ASan run-time is initialized (or after it has been
destroyed).
Currently, GetCurrentThread() may crash if it's called before ASan
run-time is initialized. Make it return nullptr instead.
Similarly, fix __asan_handle_no_return so that it gives up rather than
try something that may crash.
Differential Revision: https://reviews.llvm.org/D46459
llvm-svn: 332888
Diffstat (limited to 'llvm/lib/LTO/LTOBackend.cpp')
0 files changed, 0 insertions, 0 deletions