diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2023-03-11 14:25:11 -0800 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2023-03-11 14:25:12 -0800 |
commit | 94da5f7c360b64e12c55fa0be266d9f48e66e937 (patch) | |
tree | 41926227dc4246a7f5edbe5a4d66bad0038ca263 /compile.c | |
parent | 0c0c88d383a09fef18d8cf8a1457d1649a2cbd46 (diff) | |
download | ruby-94da5f7c360b64e12c55fa0be266d9f48e66e937.tar.gz |
Rename builtin attr :inline to :leaf
Diffstat (limited to 'compile.c')
-rw-r--r-- | compile.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; |