diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2023-03-11 13:32:58 -0800 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2023-03-11 14:19:46 -0800 |
commit | 0c0c88d383a09fef18d8cf8a1457d1649a2cbd46 (patch) | |
tree | 4c625c35cb6835b7c3e55de39d5087e393fd4cda /vm_insnhelper.c | |
parent | 3a02c7818cb6cbcc70957dfc449ebf32f9dd9e0b (diff) |
Support multiple attributes with Primitive.attr!
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r-- | vm_insnhelper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c index ff91c3c362..b3e732d26a 100644 --- a/vm_insnhelper.c +++ b/vm_insnhelper.c @@ -6395,7 +6395,7 @@ lookup_builtin_invoker(int argc) static inline VALUE invoke_bf(rb_execution_context_t *ec, rb_control_frame_t *reg_cfp, const struct rb_builtin_function* bf, const VALUE *argv) { - const bool canary_p = ISEQ_BODY(reg_cfp->iseq)->builtin_inline_p; // Verify an assumption of `Primitive.attr! 'inline'` + const bool canary_p = ISEQ_BODY(reg_cfp->iseq)->builtin_attrs & BUILTIN_ATTR_INLINE; // Verify an assumption of `Primitive.attr! :inline` SETUP_CANARY(canary_p); VALUE ret = (*lookup_builtin_invoker(bf->argc))(ec, reg_cfp->self, argv, (rb_insn_func_t)bf->func_ptr); CHECK_CANARY(canary_p, BIN(invokebuiltin)); |