diff options
| author | Jean Boussier <jean.boussier@gmail.com> | 2025-12-09 17:39:15 +0100 |
|---|---|---|
| committer | Jean Boussier <jean.boussier@gmail.com> | 2025-12-09 18:08:00 +0100 |
| commit | 98390d9360b8b8c82f798f51567587882c4e5c00 (patch) | |
| tree | 96dd872f7386aea3f0ae6adfd53242ea494baeeb /include/ruby/internal | |
| parent | f0b288adf7b3550dc5be6a02316c5822ff47ca82 (diff) | |
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.
Diffstat (limited to 'include/ruby/internal')
| -rw-r--r-- | include/ruby/internal/core/rtypeddata.h | 1 |
1 files changed, 0 insertions, 1 deletions
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 |
