-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[AST] Do not copy SearchPathOptions in updateNonUserModule #64593
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
Conversation
@swift-ci please test |
FWIW it may be worth turning |
I'm happy to just do that now. Thanks for the suggestion 👍 |
2041a3f
to
733fc6f
Compare
@swift-ci please test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
`updateNonUserModule` was accidentally copying `SearchPathOptions`. Take a reference to it instead. Also, since `addFile` is actually called many times (once for every submodule, of which there are many), change `isNonUserModule` to a request so that it's only calculated when needed. Resolves rdar://107155587.
733fc6f
to
8e6c996
Compare
@swift-ci please test |
updateNonUserModule
was accidentally copyingSearchPathOptions
. Takea reference to it instead. Also, since
addFile
is actually called manytimes (once for every submodule, of which there are many), change
isNonUserModule
to a request so that it's only calculated when needed.Resolves rdar://107155587.