hwasan: Add missing SANITIZER_INTERFACE_ATTRIBUTE on __hwasan_personality_wrapper.

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

llvm-svn: 375298
This commit is contained in:
Peter Collingbourne 2019-10-18 22:51:38 +00:00
parent 0fab220eb5
commit 33b758d2af
1 changed files with 7 additions and 4 deletions

View File

@ -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,