Skip to content

Conversation

@slavapestov
Copy link
Contributor

We were creating the JumpDests too early, so lowering a 'break' or 'continue' statement would perform cleanups that were recorded while evaluating the pack expansion expression, which would cause SIL verifier errors and runtime crashes.

We were creating the JumpDests too early, so lowering a 'break' or 'continue'
statement would perform cleanups that were recorded while evaluating the
pack expansion expression, which would cause SIL verifier errors and
runtime crashes.

- Fixes swiftlang#78598
- Fixes rdar://131847933
@slavapestov
Copy link
Contributor Author

@swift-ci Please smoke test

@slavapestov slavapestov merged commit 0fc6752 into swiftlang:main Nov 11, 2025
3 checks passed
@@ -0,0 +1,43 @@
// RUN: %target-run-simple-swift(-target %target-swift-5.9-abi-triple) | %FileCheck %s
Copy link
Member

Choose a reason for hiding this comment

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

This is also a // REQUIRES: executable_test else it breaks CI platforms like Android that need those to be explicitly labeled, submitted in #85443.

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.

Runtime crash (BAD_ACCESS) when iterating over a generic pack (tuple) and trying to access a property

2 participants