mirror of
https://github.com/apple/swift.git
synced 2026-10-30 22:15:52 +01:00
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