Skip to content

Commit 33b758d

Browse files
committedOct 18, 2019
hwasan: Add missing SANITIZER_INTERFACE_ATTRIBUTE on __hwasan_personality_wrapper.
Differential Revision: https://reviews.llvm.org/D69201 llvm-svn: 375298
1 parent 0fab220 commit 33b758d

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed
 

‎compiler-rt/lib/hwasan/hwasan_exceptions.cpp

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,13 @@ typedef _Unwind_Reason_Code PersonalityFn(int version, _Unwind_Action actions,
3232
typedef _Unwind_Word GetGRFn(_Unwind_Context* context, int index);
3333
typedef _Unwind_Word GetCFAFn(_Unwind_Context* context);
3434

35-
extern "C" _Unwind_Reason_Code __hwasan_personality_wrapper(
36-
int version, _Unwind_Action actions, uint64_t exception_class,
37-
_Unwind_Exception* unwind_exception, _Unwind_Context* context,
38-
PersonalityFn* real_personality, GetGRFn* get_gr, GetCFAFn* get_cfa) {
35+
extern "C" SANITIZER_INTERFACE_ATTRIBUTE _Unwind_Reason_Code
36+
__hwasan_personality_wrapper(int version, _Unwind_Action actions,
37+
uint64_t exception_class,
38+
_Unwind_Exception* unwind_exception,
39+
_Unwind_Context* context,
40+
PersonalityFn* real_personality, GetGRFn* get_gr,
41+
GetCFAFn* get_cfa) {
3942
_Unwind_Reason_Code rc;
4043
if (real_personality)
4144
rc = real_personality(version, actions, exception_class, unwind_exception,

0 commit comments

Comments
 (0)
Please sign in to comment.