Skip to content

Commit

Permalink
fix another bug in source map
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-cooper committed Jun 17, 2023
1 parent 806bef4 commit 48a0c65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vyper/ir/compile_ir.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def _rewrite_return_sequences(ir_node, label_params=None):
dest = args[0].value[5:] # `_sym_foo` -> `foo`
more_args = ["pass" if t.value == "return_pc" else t for t in args[1:]]
_t.append(["goto", dest] + more_args)
ir_node.args = IRnode.from_list(_t, source_pos=ir_node.source_pos).args
ir_node.args = IRnode.from_list(_t).args

if ir_node.value == "label":
label_params = set(t.value for t in ir_node.args[1].args)
Expand Down

0 comments on commit 48a0c65

Please sign in to comment.