mirror of
https://github.com/ruby/ruby.git
synced 2026-01-27 04:24:23 +00:00
RUBY3_HAS_BUILTIN: fix __builtin_unreachable
This macro has to be truthy, otherwise the `+0` trick above evalues RUBY3_HAS_BUILTIN(__builtin_unreachable) to be always false.
This commit is contained in:
parent
4b853932ea
commit
133ae0807d
Notes:
git
2020-04-10 16:17:58 +09:00
@ -86,6 +86,6 @@
|
||||
# define RUBY3_HAS_BUILTIN___builtin_popcountll HAVE_BUILTIN___BUILTIN_POPCOUNTLL
|
||||
# define RUBY3_HAS_BUILTIN___builtin_sub_overflow HAVE_BUILTIN___BUILTIN_SUB_OVERFLOW
|
||||
# if defined(UNREACHABLE)
|
||||
# define RUBY3_HAS_BUILTIN___builtin_unreachable
|
||||
# define RUBY3_HAS_BUILTIN___builtin_unreachable 1
|
||||
# endif
|
||||
#endif
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user