Skip to content

Conversation

@simanerush
Copy link
Member

@simanerush simanerush commented Jan 23, 2024

Since break/continue/return statements directly in the loop body cause the control flow to create a branch exiting the body, there would be no valid insertion point for the loop latch branch. Thus, do not create it in such cases.

The break/continue test case was using these statements inside the if statement, so this bug did not manifest.

Resolves #71074.

@simanerush simanerush force-pushed the pack-iteration-sil-fix branch from 670b82b to 0beffe7 Compare January 24, 2024 21:56
@simanerush simanerush marked this pull request as ready for review January 24, 2024 21:56
Copy link
Collaborator

@AnthonyLatsis AnthonyLatsis left a comment

Choose a reason for hiding this comment

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

Splendid!

@simanerush
Copy link
Member Author

@swift-ci please clean smoke test

@simanerush simanerush merged commit e43fac5 into swiftlang:main Jan 30, 2024
@simanerush simanerush deleted the pack-iteration-sil-fix branch January 30, 2024 01:20
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.

Assertion `hasValidInsertionPoint()' failed in variadic-generic function

2 participants