[libcxx-commits] [libcxx] c7b43b0 - [libc++] Replace [[no_unique_addredd]] with _LIBCPP_NO_UNIQUE_ADDRESS in __algorithm/min_max_result.h

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Mon Feb 21 13:57:16 PST 2022


Author: Nikolas Klauser
Date: 2022-02-21T22:56:44+01:00
New Revision: c7b43b01dcfab173982bddd5268df35a8d54813f

URL: https://github.com/llvm/llvm-project/commit/c7b43b01dcfab173982bddd5268df35a8d54813f
DIFF: https://github.com/llvm/llvm-project/commit/c7b43b01dcfab173982bddd5268df35a8d54813f.diff

LOG: [libc++] Replace [[no_unique_addredd]] with _LIBCPP_NO_UNIQUE_ADDRESS in __algorithm/min_max_result.h

Added: 
    

Modified: 
    libcxx/include/__algorithm/min_max_result.h

Removed: 
    


################################################################################
diff  --git a/libcxx/include/__algorithm/min_max_result.h b/libcxx/include/__algorithm/min_max_result.h
index d20d98a521d8..1d56a741f5bc 100644
--- a/libcxx/include/__algorithm/min_max_result.h
+++ b/libcxx/include/__algorithm/min_max_result.h
@@ -29,8 +29,8 @@ namespace ranges {
 
 template <class _T1>
 struct min_max_result {
-  [[no_unique_address]] _T1 min;
-  [[no_unique_address]] _T1 max;
+  _LIBCPP_NO_UNIQUE_ADDRESS _T1 min;
+  _LIBCPP_NO_UNIQUE_ADDRESS _T1 max;
 
   template <class _T2>
     requires convertible_to<const _T1&, _T2>


        


More information about the libcxx-commits mailing list