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

[memory-lifetime] Teach the verifier that select_enum_addr doesn't write to memory. #32177

Conversation

gottesmm
Copy link
Contributor

@gottesmm gottesmm commented Jun 4, 2020

This is an older verifier that checks that uses of addresses from things like
in_guaranteed parameters are never written to. We just never hit this before.

rdar://problem/63188699

…ite to memory.

This is an older verifier that checks that uses of addresses from things like
in_guaranteed parameters are never written to. We just never hit this before.

<rdar://problem/63188699>
@gottesmm
Copy link
Contributor Author

gottesmm commented Jun 4, 2020

@swift-ci test

@gottesmm
Copy link
Contributor Author

gottesmm commented Jun 4, 2020

This is a pretty simple patch. Basically I am fixing this here and then onto 5.3. So whomever reviews this, please be aware that I want to cherry-pick this to 5.3, so I would also like to use you as my CCC reviewer.

Not sure why we haven't hit it until now.

Copy link
Contributor

@meg-gupta meg-gupta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@gottesmm
Copy link
Contributor Author

gottesmm commented Jun 4, 2020

Thanks!

@gottesmm gottesmm merged commit 8ea7009 into swiftlang:master Jun 4, 2020
@gottesmm gottesmm deleted the pr-f5820e0408ca527e9c54f4b3c46468e4706e7c80 branch June 4, 2020 19:35
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