Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: fix IRnode.from_list #3614

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

charles-cooper
Copy link
Member

IRnode.from_list() currently has a footgun where it modifies metadata on the input. this commit copies the input to be slightly safer

What I did

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-->

@codecov-commenter
Copy link

codecov-commenter commented Sep 21, 2023

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (c6b29c7) 84.78% compared to head (09712ba) 84.79%.

Files Patch % Lines
vyper/codegen/ir_node.py 86.66% 1 Missing and 1 partial ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3614   +/-   ##
=======================================
  Coverage   84.78%   84.79%           
=======================================
  Files          92       92           
  Lines       13129    13134    +5     
  Branches     2934     2936    +2     
=======================================
+ Hits        11132    11137    +5     
  Misses       1534     1534           
  Partials      463      463           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@charles-cooper charles-cooper added this to the v0.4.0 milestone Sep 25, 2023
IRnode.from_list() currently has a footgun where it modifies metadata on
the input. this commit copies the input to be slightly safer
@charles-cooper charles-cooper removed this from the v0.4.0 milestone Feb 10, 2024
@charles-cooper
Copy link
Member Author

one issue with this PR is it seems to make performance worse

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants