Skip to content

Commit 98390d9

Browse files
committed
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.
1 parent f0b288a commit 98390d9

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

include/ruby/internal/core/rtypeddata.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,6 @@ RTYPEDDATA_TYPE(VALUE obj)
607607
return (const struct rb_data_type_struct *)(RTYPEDDATA(obj)->type & TYPED_DATA_PTR_MASK);
608608
}
609609

610-
RBIMPL_ATTR_PURE_UNLESS_DEBUG()
611610
RBIMPL_ATTR_ARTIFICIAL()
612611
/**
613612
* @private

0 commit comments

Comments
 (0)