aboutsummaryrefslogtreecommitdiffstats
path: root/vm.c
diff options
context:
space:
mode:
authorNoah Gibbs <noah.gibbs@shopify.com>2021-10-01 12:17:09 +0100
committerAlan Wu <XrXr@users.noreply.github.com>2021-10-20 18:19:42 -0400
commitbe06112d48b763da1e3f29b03e5e59d2a44e7b72 (patch)
tree8f15daffd7b106ff642b100e9dec22df49084b5d /vm.c
parentf36a5a98c02ba38d05d345104b1a6d0c0c1af29b (diff)
downloadruby-be06112d48b763da1e3f29b03e5e59d2a44e7b72.tar.gz
Fix changes from rebase
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/vm.c b/vm.c
index d4f555df6c..f535c19722 100644
--- a/vm.c
+++ b/vm.c
@@ -1850,12 +1850,11 @@ rb_vm_check_redefinition_opt_method(const rb_method_entry_t *me, VALUE klass)
klass = RBASIC_CLASS(klass);
}
if (vm_redefinition_check_method_type(me->def)) {
- if (st_lookup(vm_opt_method_table, (st_data_t)me, &bop)) {
+ if (st_lookup(vm_opt_method_def_table, (st_data_t)me->def, &bop)) {
int flag = vm_redefinition_check_flag(klass);
rb_yjit_bop_redefined(klass, me, (enum ruby_basic_operators)bop);
-
- ruby_vm_redefined_flag[bop] |= flag;
- }
+ ruby_vm_redefined_flag[bop] |= flag;
+ }
}
}