diff options
author | 卜部昌平 <shyouhei@ruby-lang.org> | 2020-04-09 15:55:55 +0900 |
---|---|---|
committer | 卜部昌平 <shyouhei@ruby-lang.org> | 2020-04-10 16:17:30 +0900 |
commit | 133ae0807d661eac174b59c6e91c11a40975baea (patch) | |
tree | d681a93314bc930cd048372c4c97b5a939840a43 /include | |
parent | 4b853932eaa7fa4acf8a0f0c9b7c695bb4f5e76d (diff) |
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.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3011
Diffstat (limited to 'include')
-rw-r--r-- | include/ruby/3/has/builtin.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ruby/3/has/builtin.h b/include/ruby/3/has/builtin.h index 23391acc3c..54dc2a5672 100644 --- a/include/ruby/3/has/builtin.h +++ b/include/ruby/3/has/builtin.h @@ -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 |