summaryrefslogtreecommitdiff
path: root/include/ruby/3/core
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2020-04-10 22:03:03 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2020-04-10 22:12:19 +0900
commitb18a6b648e3c74a3b7360d2557015b05aa8b0390 (patch)
tree5e1ca1c5ee309d1a5bb62a5c612efce03ef22548 /include/ruby/3/core
parentc9b3aa84be6577a9df8a0a1ee12715b114a10d9b (diff)
include/ruby/3: do not skip RUBY3_UNREACHABLE_RETURN
Revert "Revert "include/ruby/3/core/rtypeddata.h: Use 0 instead of NULL for C++ compiler"" Revert "include/ruby/3/core/rtypeddata.h: Use 0 instead of NULL for C++ compiler" Revert "include/ruby/3: Skip RUBY3_UNREACHABLE_RETURN for icc" Revert "include/ruby/3: Stop RUBY3_UNREACHABLE_RETURN to suppress a SunC warning" This reverts commit b965e7e05e4307e3c4b396673e63dbc493ef2f20. This reverts commit d2bb2e066b5a914283dd3ea473fc1762183af013. This reverts commit 8ab4c55e7a70f5a5bd041d93f425eeef4a47c01e. This reverts commit 78eec3cdc5ff0664b421e041f4f70a814542b914. After https://github.com/ruby/ruby/pull/3011, we no longer need these ifdef guards.
Diffstat (limited to 'include/ruby/3/core')
-rw-r--r--include/ruby/3/core/rtypeddata.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/ruby/3/core/rtypeddata.h b/include/ruby/3/core/rtypeddata.h
index 21b08570fe..cc00fa2500 100644
--- a/include/ruby/3/core/rtypeddata.h
+++ b/include/ruby/3/core/rtypeddata.h
@@ -160,9 +160,7 @@ RTYPEDDATA_TYPE(VALUE obj)
#if ! RUBY_NDEBUG
if (RB_UNLIKELY(! RTYPEDDATA_P(obj))) {
rb_unexpected_type(obj, RUBY_T_DATA);
-# if ! defined(__sun) && ! RUBY3_COMPILER_IS(Intel)
RUBY3_UNREACHABLE_RETURN(NULL);
-# endif
}
#endif