Skip to content

Commit

Permalink
fix test_assert_reason_revert_length
Browse files Browse the repository at this point in the history
  • Loading branch information
harkal committed Mar 8, 2024
1 parent b62701e commit 862bcd8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vyper/venom/ir_node_to_venom.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,10 @@ def _convert_ir_bb(ctx, ir, symbols):
ret = _convert_ir_bb(ctx, ir.args[0], symbols)
_append_return_args(ctx)
else:
bb = ctx.get_basic_block()
if bb.is_terminated:
bb = IRBasicBlock(ctx.get_next_label("seq"), ctx)
ctx.append_basic_block(bb)
ret = _convert_ir_bb(ctx, ir.args[0], symbols)

for ir_node in ir.args[1:]:
Expand Down

0 comments on commit 862bcd8

Please sign in to comment.