diff options
author | John Hawthorn <john@hawthorn.email> | 2022-01-29 21:27:53 -0800 |
---|---|---|
committer | John Hawthorn <john@hawthorn.email> | 2022-02-23 19:57:42 -0800 |
commit | 764e4fa850de749790e5ed11c8a4ab86a4499ac0 (patch) | |
tree | 29386c80ba035a2fee18c68dd9cb27f5b3ebe9d2 /object.c | |
parent | 709a6a078642e30c310e7355202a29e529361776 (diff) |
Never call kind_of with klass=0
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/5568
Diffstat (limited to 'object.c')
-rw-r--r-- | object.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -791,6 +791,8 @@ rb_obj_is_kind_of(VALUE obj, VALUE c) { VALUE cl = CLASS_OF(obj); + RUBY_ASSERT(cl); + // Note: YJIT needs this function to never allocate and never raise when // `c` is a class or a module. c = class_or_module_required(c); |