Find out which object gets released in swift_release

Did you try adding the @_semantics("optremark") attribute to the function, and building in release mode?

2 Likes