Skip to content

Commit

Permalink
add unique symbols check to venom pipeline
Browse files Browse the repository at this point in the history
when `-Onone` is specified along with `--experimental-codegen`, the
unique symbols check does not get run. this calculates the
`ir_node.unique_symbols` property, which implicitly runs the unique
symbols check.
  • Loading branch information
charles-cooper committed Jun 14, 2024
1 parent 44bb281 commit bbb89df
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vyper/venom/ir_node_to_venom.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@

# convert IRnode directly to venom
def ir_node_to_venom(ir: IRnode) -> IRContext:
_ = ir.unique_symbols # run unique symbols check

global _global_symbols
_global_symbols = {}

Expand Down

0 comments on commit bbb89df

Please sign in to comment.