Commit Graph

4 Commits

Author SHA1 Message Date
Akira Hatanaka
0e2a8bd0de Fix a test that was failing on 32-bit platforms (#75808)
rdar://133549324
2024-08-09 16:14:35 -07:00
Akira Hatanaka
e21c117831 [cxx-interop] Use unowned return convention for ObjC methods returning foreign reference types (#75640)
This fixes a runtime crash that occurs when a pointer to a foreign
reference type is passed to objc_retainAutoreleasedReturnValue.

This reverts 335cec0e8d.

rdar://117353222
2024-08-07 21:16:47 -07:00
Akira Hatanaka
7b45ef1243 Fix a test that was failing on 32-bit platforms (#73820)
rdar://128544347
2024-05-22 22:52:19 -07:00
Akira Hatanaka
335cec0e8d [cxx-interop][IRGen] Do not pass a foreign reference type to objc_retainAutoreleasedReturnValue (#73630)
If a foreign reference type has a custom retain function, emit a call to
it instead of emitting a call to objc_retainAutoreleasedReturnValue.

rdar://117353222
2024-05-17 09:04:02 -07:00