[libc++] Add _LIBCPP_NO_UNIQUE_ADDRESS to flat_{,multi}map::value_compare (#137594)

This breaks the ABI of `flat_{,multi}map::value_compare`, but this type
has only been introduced in LLVM 20, so it should be very unlikely that
we break anybody if we back-port this now.

(cherry picked from commit ed0aa9961caa177098e9b7e69e98034d676f192e)
This commit is contained in:
Nikolas Klauser 2025-05-07 16:09:40 +02:00 committed by Tom Stellard
parent b8e10ca59b
commit 337beb73ab
2 changed files with 2 additions and 2 deletions

View File

@ -113,7 +113,7 @@ public:
class value_compare {
private:
key_compare __comp_;
_LIBCPP_NO_UNIQUE_ADDRESS key_compare __comp_;
_LIBCPP_HIDE_FROM_ABI value_compare(key_compare __c) : __comp_(__c) {}
friend flat_map;

View File

@ -115,7 +115,7 @@ public:
class value_compare {
private:
key_compare __comp_;
_LIBCPP_NO_UNIQUE_ADDRESS key_compare __comp_;
_LIBCPP_HIDE_FROM_ABI value_compare(key_compare __c) : __comp_(__c) {}
friend flat_multimap;