aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/LTO/LTOBackend.cpp
diff options
context:
space:
mode:
authorWalter Lee <waltl@google.com>2018-05-21 20:43:36 +0000
committerWalter Lee <waltl@google.com>2018-05-21 20:43:36 +0000
commitead3b3487bf06d83bfef1e9536e38686a0c9533b (patch)
treeb45ce11291c98913a97aefcc4f50c66e28bbd62a /llvm/lib/LTO/LTOBackend.cpp
parentb8346e3f0796513f862c05e2db38e63f8429e222 (diff)
downloadllvm-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