Skip to content

Fixed no copying IsIsolated flag when cloning subscript params #81022

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

Merged
merged 2 commits into from
May 14, 2025

Conversation

nickolas-pohilets
Copy link
Contributor

Fixes #80992

Should IsVariadic and IsAddressable be copied as well? I suspect param->setOptions(subscriptParam->getOptions()); would be better than copying flags one by one.

Copy link
Member

@hborla hborla left a comment

Choose a reason for hiding this comment

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

Thank you! Could you please cherry pick this to release/6.2?

@hborla
Copy link
Member

hborla commented May 2, 2025

@swift-ci please smoke test

@hborla
Copy link
Member

hborla commented May 2, 2025

Should IsVariadic and IsAddressable be copied as well? I suspect param->setOptions(subscriptParam->getOptions()); would be better than copying flags one by one.

I don't see any reason why we wouldn't copy these too.

@nickolas-pohilets
Copy link
Contributor Author

Thank you! Could you please cherry pick this to release/6.2?

Will do after merging this one.

@hborla
Copy link
Member

hborla commented May 13, 2025

@swift-ci please smoke test

@hborla hborla merged commit 40b5709 into swiftlang:main May 14, 2025
3 checks passed
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.

False positive in isolation checking subscript isolated to an argument
3 participants