Skip to content

Commit 32962f2

Browse files
committed
[ubsan] Try to fix Windows
1 parent 25bb659 commit 32962f2

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

compiler-rt/lib/ubsan/ubsan_handlers.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -908,14 +908,17 @@ extern "C" void __ubsan_handle_cfi_bad_type_default(CFICheckFailData *Data,
908908
}
909909

910910
WIN_WEAK_ALIAS(__ubsan_handle_cfi_bad_type, __ubsan_handle_cfi_bad_type_default)
911-
#endif
911+
void __ubsan_handle_cfi_bad_type(CFICheckFailData *Data, ValueHandle Vtable,
912+
bool ValidVtable, ReportOptions Opts);
913+
#else
912914
SANITIZER_WEAK_ATTRIBUTE
913915
void __ubsan_handle_cfi_bad_type(CFICheckFailData *Data, ValueHandle Vtable,
914916
bool ValidVtable, ReportOptions Opts) {
915917
Die();
916918
}
919+
#endif
917920

918-
} // namespace __ubsan
921+
} // namespace __ubsan
919922

920923
void __ubsan::__ubsan_handle_cfi_check_fail(CFICheckFailData *Data,
921924
ValueHandle Value,

0 commit comments

Comments
 (0)