HWASan exception support.
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Thu, 16 May 2019 23:54:41 +0000 (23:54 +0000)
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Thu, 16 May 2019 23:54:41 +0000 (23:54 +0000)
commit7f281b2c06b19a64a2d630df02ccbf23526e6728
tree47ead30fb2abc4adf27e32292a308f510d173680
parent627e383ce559a24848eeff8852a95d44805b3d36
HWASan exception support.

Summary:
Adds a call to __hwasan_handle_vfork(SP) at each landingpad entry.

Reusing __hwasan_handle_vfork instead of introducing a new runtime call
in order to be ABI-compatible with old runtime library.

Reviewers: pcc

Subscribers: kubamracek, hiraditya, #sanitizers, llvm-commits

Tags: #sanitizers, #llvm

Differential Revision: https://reviews.llvm.org/D61968

llvm-svn: 360959
compiler-rt/test/hwasan/TestCases/try-catch.cc [new file with mode: 0644]
llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
llvm/test/Instrumentation/HWAddressSanitizer/landingpad.ll [new file with mode: 0644]