swift
7e8f7c77 - [cxx-interop] Define defaulted C++20 comparison operators before emitting them

Commit
3 days ago
[cxx-interop] Define defaulted C++20 comparison operators before emitting them C++20 defaulted comparison operators don't have body until Clang's Sema synthesizes one. In Clang this happens when the operators are referenced (Sema::MarkFunctionReferenced). In Swift's IRGen, we skip marking functions as referenced, and manually define a set of selected functions. This patch adds defining C++20 defaulted comparison operators to this set. Fixes #88710 rdar://175766744
Committer
Parents
Loading