summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2019-10-18 22:51:38 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2019-10-18 22:51:38 +0000
commit33b758d2af312d02f2b5ef6915e62c6bb06e944e (patch)
tree9b2abb33e16cd68112940f5f268b52a6169c07a7
parent0fab220eb5882ef451d039d5251a0a1298121f63 (diff)
downloadbcm5719-llvm-33b758d2af312d02f2b5ef6915e62c6bb06e944e.tar.gz
bcm5719-llvm-33b758d2af312d02f2b5ef6915e62c6bb06e944e.zip
hwasan: Add missing SANITIZER_INTERFACE_ATTRIBUTE on __hwasan_personality_wrapper.
Differential Revision: https://reviews.llvm.org/D69201 llvm-svn: 375298
-rw-r--r--compiler-rt/lib/hwasan/hwasan_exceptions.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/compiler-rt/lib/hwasan/hwasan_exceptions.cpp b/compiler-rt/lib/hwasan/hwasan_exceptions.cpp
index 57a1438064c..169e7876cb5 100644
--- a/compiler-rt/lib/hwasan/hwasan_exceptions.cpp
+++ b/compiler-rt/lib/hwasan/hwasan_exceptions.cpp
@@ -32,10 +32,13 @@ typedef _Unwind_Reason_Code PersonalityFn(int version, _Unwind_Action actions,
typedef _Unwind_Word GetGRFn(_Unwind_Context* context, int index);
typedef _Unwind_Word GetCFAFn(_Unwind_Context* context);
-extern "C" _Unwind_Reason_Code __hwasan_personality_wrapper(
- int version, _Unwind_Action actions, uint64_t exception_class,
- _Unwind_Exception* unwind_exception, _Unwind_Context* context,
- PersonalityFn* real_personality, GetGRFn* get_gr, GetCFAFn* get_cfa) {
+extern "C" SANITIZER_INTERFACE_ATTRIBUTE _Unwind_Reason_Code
+__hwasan_personality_wrapper(int version, _Unwind_Action actions,
+ uint64_t exception_class,
+ _Unwind_Exception* unwind_exception,
+ _Unwind_Context* context,
+ PersonalityFn* real_personality, GetGRFn* get_gr,
+ GetCFAFn* get_cfa) {
_Unwind_Reason_Code rc;
if (real_personality)
rc = real_personality(version, actions, exception_class, unwind_exception,
OpenPOWER on IntegriCloud