Use abort() for fallback implementations of unreachable().

This commit is contained in:
Jason Evans 2016-03-24 01:42:08 -07:00
parent 232b13d862
commit af3184cac0

View File

@ -73,12 +73,12 @@
JEMALLOC_CLANG_HAS_BUILTIN(__builtin_unreachable) JEMALLOC_CLANG_HAS_BUILTIN(__builtin_unreachable)
# define unreachable() __builtin_unreachable() # define unreachable() __builtin_unreachable()
# else # else
# define unreachable() # define unreachable() abort()
# endif # endif
#else #else
# define likely(x) !!(x) # define likely(x) !!(x)
# define unlikely(x) !!(x) # define unlikely(x) !!(x)
# define unreachable() # define unreachable() abort()
#endif #endif
#include "jemalloc/internal/assert.h" #include "jemalloc/internal/assert.h"