From 94da5f7c360b64e12c55fa0be266d9f48e66e937 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Sat, 11 Mar 2023 14:25:11 -0800 Subject: Rename builtin attr :inline to :leaf --- compile.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'compile.c') diff --git a/compile.c b/compile.c index 76658fc153..572e727085 100644 --- a/compile.c +++ b/compile.c @@ -8214,7 +8214,7 @@ delegate_call_p(const rb_iseq_t *iseq, unsigned int argc, const LINK_ANCHOR *arg } } -// Compile Primitive.attr! :inline, ... +// Compile Primitive.attr! :leaf, ... static int compile_builtin_attr(rb_iseq_t *iseq, const NODE *node) { @@ -8233,8 +8233,8 @@ compile_builtin_attr(rb_iseq_t *iseq, const NODE *node) if (!SYMBOL_P(symbol)) goto non_symbol_arg; string = rb_sym_to_s(symbol); - if (strcmp(RSTRING_PTR(string), "inline") == 0) { - ISEQ_BODY(iseq)->builtin_attrs |= BUILTIN_ATTR_INLINE; + if (strcmp(RSTRING_PTR(string), "leaf") == 0) { + ISEQ_BODY(iseq)->builtin_attrs |= BUILTIN_ATTR_LEAF; } else { goto unknown_arg; -- cgit v1.2.1