Skip to content

Commit

Permalink
use update instead of union
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-cooper committed Oct 27, 2024
1 parent d3967f5 commit 240d9d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vyper/venom/analysis/liveness.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def _calculate_out_vars(self, bb: IRBasicBlock) -> bool:
bb.out_vars = OrderedSet()
for out_bb in bb.cfg_out:
target_vars = self.input_vars_from(bb, out_bb)
bb.out_vars = bb.out_vars.union(target_vars)
bb.out_vars.update(target_vars)
return out_vars != bb.out_vars

# calculate the input variables into self from source
Expand Down

0 comments on commit 240d9d2

Please sign in to comment.