Skip to content

Commit fb90301

Browse files
committed
Mark leaf defined instructions as leaf
For example, `defined?(yield)` never calls a method, so it's leaf.
1 parent 83bc6ce commit fb90301

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tool/ruby_vm/views/_leaf_helpers.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ leafness_of_defined(rb_num_t op_type)
2525
case DEFINED_YIELD:
2626
case DEFINED_REF:
2727
case DEFINED_ZSUPER:
28-
return false;
28+
return true;
2929
case DEFINED_CONST:
3030
case DEFINED_CONST_FROM:
3131
/* has rb_autoload_load(); */

0 commit comments

Comments
 (0)