swift
74c444d6 - [cxx-interop] Emit function types as Swift closures in templated params

Commit
1 year ago
[cxx-interop] Emit function types as Swift closures in templated params This is required to make the compiler distinguish between instantiations of `std::function`. Previously, when generating a Swift type name for a `std::function` instantiation, we would always emit `_` as the template parameter. If someone referenced two different instantiations of `std::function` in a Swift module, they would get mangled with the same name, triggering linker errors later. rdar://103979602
Author
Committer
Parents
Loading