We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ced24d commit 52f8441Copy full SHA for 52f8441
yjit_codegen.c
@@ -1125,6 +1125,8 @@ gen_opt_gt(jitstate_t* jit, ctx_t* ctx)
1125
return gen_fixnum_cmp(jit, ctx, cmovg);
1126
}
1127
1128
+static codegen_status_t gen_opt_send_without_block(jitstate_t *jit, ctx_t *ctx);
1129
+
1130
static codegen_status_t
1131
gen_opt_aref(jitstate_t *jit, ctx_t *ctx)
1132
{
@@ -1266,8 +1268,10 @@ gen_opt_aref(jitstate_t *jit, ctx_t *ctx)
1266
1268
jit_jump_to_next_insn(jit, ctx);
1267
1269
return YJIT_END_BLOCK;
1270
-
- return YJIT_CANT_COMPILE;
1271
+ else {
1272
+ // General case. Call the [] method.
1273
+ return gen_opt_send_without_block(jit, ctx);
1274
+ }
1275
1276
1277
0 commit comments