Windows: the pointer passed to _swift_willThrow
cannot be weakly referenced
#62985
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
error handling
Windows
Platform: Windows
Description
On Windows, the pointer passed to
_swift_willThrow
does not appear to be a valid heap object, and attempting to weakly reference it causes a crash.Steps to reproduce
Implement a program that sets the
_swift_willThrow
hook to a function like so:Expected behavior
As on Darwin/Linux, this pointer should be safe to bitcast to an object and then weakly reference.
Environment
The text was updated successfully, but these errors were encountered: