Skip to content

Conversation

@tlively
Copy link
Member

@tlively tlively commented Jan 13, 2026

Update a comment to better match the code and tweak a loop to avoid
repeated work. Not NFC because avoiding the double count of multivalue
control flow types changes type ordering.

Update a comment to better match the code and tweak a loop to avoid
repeated work.
@tlively tlively requested a review from kripken January 13, 2026 03:00
// control flow types. Consider one more control flow type and repeat.
for (; controlFlowIt != info.controlFlowSignatures.end(); ++controlFlowIt) {
while (controlFlowIt != info.controlFlowSignatures.end()) {
auto& [sig, count] = *controlFlowIt;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
auto& [sig, count] = *controlFlowIt;
auto& [sig, count] = *controlFlowIt++;

Why not increment here? Or on the line right after?

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh yes, that's better 😀

@tlively tlively changed the title [NFC] Minor improvements around type collection Minor improvements around type collection Jan 14, 2026
@tlively tlively changed the title Minor improvements around type collection Do not double count control flow types Jan 14, 2026
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.

3 participants