Use abort() for fallback implementations of unreachable().
This commit is contained in:
parent
232b13d862
commit
af3184cac0
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user