mruby-compiler (gen_call): use OP_SSEND for self.foo() calls

This commit is contained in:
Yukihiro "Matz" Matsumoto
2024-12-20 10:05:09 +09:00
parent aad7dce017
commit 583aa985c8
+1 -1
View File
@@ -1726,7 +1726,7 @@ gen_call(codegen_scope *s, node *tree, int val, int safe)
mrb_sym sym = nsym(tree->cdr->car);
int skip = 0, n = 0, nk = 0, noop = no_optimize(s), noself = 0, blk = 0, sp_save = cursp();
if (!tree->car) {
if (!tree->car || nint(tree->car->car) == NODE_SELF) {
noself = noop = 1;
push();
}