Skip to content

Use swift_getErrorValue() unless Objective-C is available. #922

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
Jan 22, 2025

Conversation

grynspan
Copy link
Contributor

@grynspan grynspan commented Jan 21, 2025

Tweak the logic for when we use the runtime-internal swift_getErrorValue() function in our _swift_willThrow handler so that we use it if the runtime does not support Objective-C interop. Currently, we toggle based on whether we're on an Apple platform, but this isn't quite right.

Resolves rdar://143328537.

Checklist:

  • Code and documentation should follow the style of the Style Guide.
  • If public symbols are renamed or modified, DocC references should be updated.

Tweak the logic for when we use the runtime-internal `swift_getErrorValue()`
function in our `_swift_willThrow` handler so that we use it if the runtime does
not support Objective-C interop. Currently, we toggle based on whether we're on
an Apple platform, but this isn't quite right.

Resolves rdar://143328537.
@grynspan grynspan added bug 🪲 Something isn't working darwin 🍎 macOS, iOS, watchOS, tvOS, and visionOS support embedded-swift 📟 Embedded Swift issues issue-handling Related to Issue handling within the testing library labels Jan 21, 2025
@grynspan grynspan added this to the Swift 6.x milestone Jan 21, 2025
@grynspan grynspan self-assigned this Jan 21, 2025
@grynspan
Copy link
Contributor Author

@swift-ci test

@grynspan grynspan merged commit faaabba into main Jan 22, 2025
3 checks passed
@grynspan grynspan deleted the jgrynspan/143328537-backtrace-error-casting branch January 22, 2025 00:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🪲 Something isn't working darwin 🍎 macOS, iOS, watchOS, tvOS, and visionOS support embedded-swift 📟 Embedded Swift issues issue-handling Related to Issue handling within the testing library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants