Remove unused opt_call_c_function insn (#7750)

This commit is contained in:
Takashi Kokubun 2023-04-21 23:58:07 -07:00 committed by GitHub
parent de5cd5a635
commit 1702b0f438
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
Notes: git 2023-04-22 06:58:28 +00:00
Merged-By: k0kubun <takashikkbn@gmail.com>

View File

@ -1472,27 +1472,6 @@ opt_regexpmatch2
} }
} }
/* call native compiled method */
DEFINE_INSN_IF(SUPPORT_CALL_C_FUNCTION)
opt_call_c_function
(rb_insn_func_t funcptr)
()
()
// attr bool leaf = false; /* anything can happen inside */
// attr bool handles_sp = true;
{
reg_cfp = (funcptr)(ec, reg_cfp);
if (reg_cfp == 0) {
VALUE err = ec->errinfo;
ec->errinfo = Qnil;
THROW_EXCEPTION(err);
}
RESTORE_REGS();
NEXT_INSN();
}
/* call specific function with args */ /* call specific function with args */
DEFINE_INSN DEFINE_INSN
invokebuiltin invokebuiltin