Skip to content

Conversation

@Xazax-hun
Copy link
Contributor

These types are passed around as reference counted pointers, so the optional representation of them are nullable pointers. Previously, we tried to wrap them in swift::Optional.

rdar://157667946

… C++

These types are passed around as reference counted pointers, so the
optional representation of them are nullable pointers. Previously, we
tried to wrap them in swift::Optional.

rdar://157667946
@Xazax-hun Xazax-hun added the c++ interop Feature: Interoperability with C++ label Aug 8, 2025
@Xazax-hun
Copy link
Contributor Author

@swift-ci please smoke test

@Xazax-hun Xazax-hun enabled auto-merge August 8, 2025 14:14
@Xazax-hun
Copy link
Contributor Author

@swift-ci please smoke test macOS

@Xazax-hun Xazax-hun merged commit 13c3ed9 into swiftlang:main Aug 8, 2025
3 checks passed
Xazax-hun added a commit to Xazax-hun/swift that referenced this pull request Sep 3, 2025
…ft to C++

ExplanationThese types are passed around as reference counted pointers,
so the optional representation of them are nullable pointers.
Previously, we tried to wrap them in swift::Optional.
Issues: rdar://157667946
Original PRs: swiftlang#83609
Risk: Low, the fix is narrow.
Testing: Added a compiler test.
Reviewers: @hnrklssn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c++ interop Feature: Interoperability with C++

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants