Skip to content

Properly Iterate Through RequestedCachedResults #24596

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 1 commit into from
May 8, 2019

Conversation

gmittert
Copy link
Contributor

@gmittert gmittert commented May 8, 2019

Clearing the cache and the end of the for loop invalidates the interator
and prevents iterating through the rest of the vector. This should be
cleared after we're done iterating.

I've moved the clear outside of the loop which I think was the original intent.

Clearing the cache and the end of the for loop invalidates the interator
and prevents iterating through the rest of the vector. This should be
cleared after we're done iterating.
@gmittert gmittert requested a review from benlangmuir May 8, 2019 00:35
@gmittert
Copy link
Contributor Author

gmittert commented May 8, 2019

@swift-ci please test

@benlangmuir benlangmuir merged commit df3da8d into swiftlang:master May 8, 2019
@benlangmuir
Copy link
Contributor

Good catch. This was missed when RequestedCachedResults changed from Optional to a vector.

@gmittert gmittert deleted the AFewLinesToClearly branch May 8, 2019 17:19
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