summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--yjit_codegen.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/yjit_codegen.c b/yjit_codegen.c
index 4a8cf6ff32..4e593f1322 100644
--- a/yjit_codegen.c
+++ b/yjit_codegen.c
@@ -2929,6 +2929,11 @@ gen_invokesuper(jitstate_t *jit, ctx_t *ctx)
VALUE current_defined_class = me->defined_class;
ID mid = me->def->original_id;
+
+ // vm_search_normal_superclass
+ if (BUILTIN_TYPE(current_defined_class) == T_ICLASS && FL_TEST_RAW(RBASIC(current_defined_class)->klass, RMODULE_IS_REFINEMENT)) {
+ return YJIT_CANT_COMPILE;
+ }
VALUE comptime_superclass = RCLASS_SUPER(RCLASS_ORIGIN(current_defined_class));
const struct rb_callinfo *ci = cd->ci;