swift
8178aa8b - [cxx-interop] Pass foreign reference types with correct level of indirection

Commit
61 days ago
[cxx-interop] Pass foreign reference types with correct level of indirection When calling a C++ function that takes a reference to a pointer to a foreign reference type, Swift would previously pass a pointer to the foreign reference type as an argument (instead of a reference to a pointer), which resulted in invalid memory accesses. This was observed when using `std::vector<ImmortalRef*>::push_back`. rdar://150791778 (cherry picked from commit 0a766e59ce90cbe965d1bf210ae4f9f7b6f64466)
Author
Committer
Parents
Loading