Skip to content

Commit

Permalink
fix: unique symbol name (#3848)
Browse files Browse the repository at this point in the history
`STORE()` unique symbol name is computed as
`_freshname(_freshname(f"{op}_"))` instead of `_freshname(f"{op}_")`
after 5825e12. This commit fixes this.
  • Loading branch information
trocher authored Mar 8, 2024
1 parent 787c562 commit 7a083d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vyper/codegen/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ def STORE(ptr: IRnode, val: IRnode) -> IRnode:
if ptr.location in (MEMORY, IMMUTABLES):
return IRnode.from_list(store)

return IRnode.from_list(ensure_eval_once(_freshname(f"{op}_"), store))
return IRnode.from_list(ensure_eval_once(f"{op}_", store))


# Unwrap location
Expand Down

0 comments on commit 7a083d3

Please sign in to comment.