summaryrefslogtreecommitdiff
path: root/compile.c
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2023-03-11 14:25:11 -0800
committerTakashi Kokubun <takashikkbn@gmail.com>2023-03-11 14:25:12 -0800
commit94da5f7c360b64e12c55fa0be266d9f48e66e937 (patch)
tree41926227dc4246a7f5edbe5a4d66bad0038ca263 /compile.c
parent0c0c88d383a09fef18d8cf8a1457d1649a2cbd46 (diff)
downloadruby-94da5f7c360b64e12c55fa0be266d9f48e66e937.tar.gz
Rename builtin attr :inline to :leaf
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c6
1 files changed, 3 insertions, 3 deletions
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;