| Index: src/base/macros.h
|
| diff --git a/src/base/macros.h b/src/base/macros.h
|
| index e98b4f569f2bab5bc91d691293089b12254ce157..2baba262d17ebf408c7828f121eb33e38b0f8ec2 100644
|
| --- a/src/base/macros.h
|
| +++ b/src/base/macros.h
|
| @@ -273,6 +273,16 @@ V8_INLINE Dest bit_cast(Source const& source) {
|
| #define DISABLE_ASAN
|
| #endif
|
|
|
| +#if defined(__has_attribute)
|
| +#if __has_attribute(no_sanitize)
|
| +#define DISABLE_CFI_UNRELATED_CAST \
|
| + __attribute__((no_sanitize("cfi-unrelated-cast")))
|
| +#else
|
| +#define DISABLE_CFI_UNRELATED_CAST
|
| +#endif
|
| +#else
|
| +#define DISABLE_CFI_UNRELATED_CAST
|
| +#endif
|
|
|
| #if V8_CC_GNU
|
| #define V8_IMMEDIATE_CRASH() __builtin_trap()
|
|
|