diff options
Diffstat (limited to 'include/ruby/3/core/rtypeddata.h')
-rw-r--r-- | include/ruby/3/core/rtypeddata.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/ruby/3/core/rtypeddata.h b/include/ruby/3/core/rtypeddata.h index cc00fa2500..1627d327f9 100644 --- a/include/ruby/3/core/rtypeddata.h +++ b/include/ruby/3/core/rtypeddata.h @@ -160,7 +160,9 @@ RTYPEDDATA_TYPE(VALUE obj) #if ! RUBY_NDEBUG if (RB_UNLIKELY(! RTYPEDDATA_P(obj))) { rb_unexpected_type(obj, RUBY_T_DATA); +# if ! defined(__sun) RUBY3_UNREACHABLE_RETURN(NULL); +# endif } #endif |