diff options
Diffstat (limited to 'compiler-rt/lib/xray/xray_init.cc')
| -rw-r--r-- | compiler-rt/lib/xray/xray_init.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler-rt/lib/xray/xray_init.cc b/compiler-rt/lib/xray/xray_init.cc index 864e77944a5..07f6924316d 100644 --- a/compiler-rt/lib/xray/xray_init.cc +++ b/compiler-rt/lib/xray/xray_init.cc @@ -88,8 +88,7 @@ void __xray_init() XRAY_NEVER_INSTRUMENT { #endif } -// Only add the preinit array initialization if the sanitizers can. -#if !defined(XRAY_NO_PREINIT) && SANITIZER_CAN_USE_PREINIT_ARRAY +#ifndef XRAY_NO_PREINIT __attribute__((section(".preinit_array"), used)) void (*__local_xray_preinit)(void) = __xray_init; #endif |

