__builtin_unreachable() seems not emit runtime error
This commit is contained in:
@@ -173,7 +173,7 @@ typedef unsigned long uint32_t;
|
||||
# define GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)
|
||||
#endif
|
||||
#if GCC_VERSION >= 40500 || __clang__
|
||||
# define PIC_UNREACHABLE() (__builtin_unreachable())
|
||||
# define PIC_UNREACHABLE() (assert(false), __builtin_unreachable())
|
||||
#else
|
||||
# define PIC_UNREACHABLE() (assert(false))
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user