vyperlang / vyper

Pythonic Smart Contract Language for the EVM
https://vyperlang.org
Other
4.81k stars 788 forks source link

fix[lang]: fix varinfo comparison #4164

Open charles-cooper opened 2 weeks ago

charles-cooper commented 2 weeks ago

for VarInfos which are declared in memory, the VarInfo initialization is missing decl_node and therefore different variables with the same type get detected as overlapping in loop iterator modification detection. this commit properly initializes the VarInfos in memory.

What I did

fix #4163

How I did it

How to verify it

Commit message

Commit message for the final, squashed PR. (Optional, but reviewers will appreciate it! Please see our commit message style guide for what we would ideally like to see in a commit message.)

Description for the changelog

Cute Animal Picture

![Put a link to a cute animal picture inside the parenthesis-->]()