[ubsan] Fix __ubsan_on_report interface definition
Speculative fix for the interface definition of __ubsan_on_report for the Windows bots: http://lab.llvm.org:8011/builders/sanitizer-windows/builds/30528 lib\ubsan\ubsan_interface.inc(55): error C2065: '__ubsan_on_report': undeclared identifier INTERCEPT_SANITIZER_WEAK_FUNCTION was the wrong macro to use to begin with because __ubsan_on_report isn't weak. Reading through that macro, it's still not clear to me why there is an undefined reference, though, because it appears to define a dummy __ubsan_on_report shim. llvm-svn: 335383
This commit is contained in:
parent
9508af351a
commit
c835306ac5
|
@ -52,5 +52,5 @@ INTERFACE_FUNCTION(__ubsan_handle_type_mismatch_v1_abort)
|
|||
INTERFACE_FUNCTION(__ubsan_handle_vla_bound_not_positive)
|
||||
INTERFACE_FUNCTION(__ubsan_handle_vla_bound_not_positive_abort)
|
||||
INTERFACE_WEAK_FUNCTION(__ubsan_default_options)
|
||||
INTERFACE_WEAK_FUNCTION(__ubsan_on_report)
|
||||
INTERFACE_FUNCTION(__ubsan_on_report)
|
||||
INTERFACE_FUNCTION(__ubsan_get_current_report_data)
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
#ifdef SANITIZER_DYNAMIC
|
||||
#include "sanitizer_common/sanitizer_win_weak_interception.h"
|
||||
#include "ubsan_flags.h"
|
||||
#include "ubsan_monitor.h"
|
||||
// Check if strong definitions for weak functions are present in the main
|
||||
// executable. If that is the case, override dll functions to point to strong
|
||||
// implementations.
|
||||
|
|
Loading…
Reference in New Issue