diff options
author | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2014-03-27 14:04:58 +0000 |
---|---|---|
committer | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2014-03-27 14:04:58 +0000 |
commit | 666fe6c6cc03add404e348ebc0ae7aaac869d140 (patch) | |
tree | e2ea3cd0456d2e3a02269b6674f478b4e8abaf5e /include | |
parent | d811922250840e4a91696c92fc9685c158b05722 (diff) | |
download | compiler-rt-666fe6c6cc03add404e348ebc0ae7aaac869d140.tar.gz |
[msan] Implement __msan_set_death_callback.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204926 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/sanitizer/msan_interface.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sanitizer/msan_interface.h b/include/sanitizer/msan_interface.h index cefc11af7..41750d586 100644 --- a/include/sanitizer/msan_interface.h +++ b/include/sanitizer/msan_interface.h @@ -89,6 +89,9 @@ extern "C" { a string containing Msan runtime options. See msan_flags.h for details. */ const char* __msan_default_options(); + // Sets the callback to be called right before death on error. + // Passing 0 will unset the callback. + void __msan_set_death_callback(void (*callback)(void)); /***********************************/ /* Allocator statistics interface. */ |