Skip to content

Commit

Permalink
[PRISM] Remove errant NOP when redo_label is set
Browse files Browse the repository at this point in the history
  • Loading branch information
eightbitraptor authored and jemmaissroff committed Dec 13, 2023
1 parent 9267dbd commit cb8a985
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion prism_compile.c
Expand Up @@ -4965,7 +4965,9 @@ pm_compile_node(rb_iseq_t *iseq, const pm_node_t *node, LINK_ANCHOR *const ret,

ADD_TRACE(ret, RUBY_EVENT_B_CALL);
NODE dummy_line_node = generate_dummy_line_node(body->location.first_lineno, -1);
PM_NOP;
if (ISEQ_COMPILE_DATA(iseq)->redo_label != 0) {
PM_NOP;
}
ADD_LABEL(ret, start);

if (scope_node->body) {
Expand Down

0 comments on commit cb8a985

Please sign in to comment.