Skip to content

Commit

Permalink
class.c: Generated :reader methods should not put an OP_NEXTSTATE bef…
Browse files Browse the repository at this point in the history
…ore OP_METHSTART

It doesn't show up in tests here, but it will confuse B::Deparse's
attempts to find the OP_METHSTART, as regular `method foo () { ... }`
will not have such a thing there.
  • Loading branch information
leonerd committed Feb 18, 2024
1 parent 5fdf6e9 commit 30377c0
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion class.c
Original file line number Diff line number Diff line change
Expand Up @@ -1018,7 +1018,6 @@ apply_field_attribute_reader(pTHX_ PADNAME *pn, SV *value)
}

OP *ops = newLISTOPn(OP_LINESEQ, 0,
newSTATEOP(0, NULL, NULL),
methstartop,
argcheckop,
retop,
Expand Down

0 comments on commit 30377c0

Please sign in to comment.