diff options
Diffstat (limited to 'third_party/base/logging.h')
-rw-r--r-- | third_party/base/logging.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/third_party/base/logging.h b/third_party/base/logging.h index 2aeca31b85..76555f563e 100644 --- a/third_party/base/logging.h +++ b/third_party/base/logging.h @@ -9,16 +9,15 @@ #include <stdlib.h> #ifndef _WIN32 -#define NULL_DEREF_IF_POSSIBLE \ - *(reinterpret_cast<volatile char*>(NULL) + 42) = 0x42; +#define NULL_DEREF_IF_POSSIBLE __builtin_unreachable() #else -#define NULL_DEREF_IF_POSSIBLE +#define NULL_DEREF_IF_POSSIBLE __assume(0) #endif #define CHECK(condition) \ if (!(condition)) { \ abort(); \ - NULL_DEREF_IF_POSSIBLE \ + NULL_DEREF_IF_POSSIBLE;\ } // TODO(palmer): These are quick hacks to import PartitionAlloc with minimum |