[libcxx-commits] [libcxx] [libc++] Replace `__compressed_pair` with `[[no_unique_address]]` (PR #76756)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Wed Dec 4 06:54:11 PST 2024


================
@@ -231,7 +199,7 @@ def __init__(self, val):
 
     def to_string(self):
         """Build a python string from the data whether stored inline or separately."""
-        value_field = _value_of_pair_first(self.val["__r_"])
+        value_field = self.val["__rep_"]
----------------
philnik777 wrote:

Wouldn't you be able to use the old and new printer in parallel in that (arguably rare) case? i.e. try with the new one and if it fails go the old one? I'm in no way an expert in debugger pretty printing, so I may very well be wrong here.

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


More information about the libcxx-commits mailing list