[Lldb-commits] [lldb] [WIP][lldb][test] Add a new __compressed_pair layout to libcxx simulator tests (PR #99012)

Michael Buch via lldb-commits lldb-commits at lists.llvm.org
Tue Jul 16 03:06:33 PDT 2024


================
@@ -183,31 +183,40 @@ template <class _CharT, class _Traits, class _Allocator> class basic_string {
     };
   };
 
+#if COMPRESSED_PAIR_REV == 0
   std::__lldb::__compressed_pair<__rep, allocator_type> __r_;
+#define __R_ __r_
----------------
Michael137 wrote:

Probably more readable if I just replaced all the `__r_.first().XXX` accesses with calls to `setXXX` or something

https://github.com/llvm/llvm-project/pull/99012


More information about the lldb-commits mailing list