Skip to content

Don't Mutate ModuleDecl's File List When Creating Synthesized Files #59383

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
Jun 13, 2022

Conversation

CodaFi
Copy link
Contributor

@CodaFi CodaFi commented Jun 11, 2022

See #59144 for more on why this is a bad idea.

Patch out the synthesized file unit accessor to only clear the source cache, then patch up all the places that were assuming they could iterate over the module's file list and see synthesized files.

rdar://94164512

See swiftlang#59144 for more on why this is a bad idea.

Patch out the synthesized file unit accessor to only clear the source cache, then patch up all the places that were assuming they could iterate over the module's file list and see synthesized files.

rdar://94164512
@CodaFi
Copy link
Contributor Author

CodaFi commented Jun 11, 2022

@swift-ci test

@CodaFi CodaFi force-pushed the file-this-one-under-i-for-immutable branch from dee1bb2 to ac68360 Compare June 13, 2022 17:09
@CodaFi
Copy link
Contributor Author

CodaFi commented Jun 13, 2022

@swift-ci test

@CodaFi CodaFi merged commit a845fa5 into swiftlang:main Jun 13, 2022
@CodaFi CodaFi deleted the file-this-one-under-i-for-immutable branch June 13, 2022 22:03
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.

1 participant