From 98390d9360b8b8c82f798f51567587882c4e5c00 Mon Sep 17 00:00:00 2001 From: Jean Boussier Date: Tue, 9 Dec 2025 17:39:15 +0100 Subject: Don't declare `rbimpl_check_typeddata` as pure [Bug #21771] It may raise so it's incorrect and can lead to the compiler optimizing the call out. --- include/ruby/internal/core/rtypeddata.h | 1 - 1 file changed, 1 deletion(-) (limited to 'include/ruby/internal') diff --git a/include/ruby/internal/core/rtypeddata.h b/include/ruby/internal/core/rtypeddata.h index ebcac2c846..aed4bd89b8 100644 --- a/include/ruby/internal/core/rtypeddata.h +++ b/include/ruby/internal/core/rtypeddata.h @@ -607,7 +607,6 @@ RTYPEDDATA_TYPE(VALUE obj) return (const struct rb_data_type_struct *)(RTYPEDDATA(obj)->type & TYPED_DATA_PTR_MASK); } -RBIMPL_ATTR_PURE_UNLESS_DEBUG() RBIMPL_ATTR_ARTIFICIAL() /** * @private -- cgit v1.2.3