Skip to content

Commit 9b4f290

Browse files
committed
[lldb][Format] Update std::deque formatter to account for libc++ naming changes
Cherry-picked the LLDB parts from: ``` commit c7df106 Author: Peng Liu <[email protected]> Date: Wed Nov 13 05:08:08 2024 -0500 Unify naming of internal pointer members in std::vector and std::__split_buffer (llvm#115517) ``` Addresses llvm#144555
1 parent 3a15ac5 commit 9b4f290

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lldb/examples/synthetic/libcxx.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -764,9 +764,10 @@ def update(self):
764764
map_.GetChildMemberWithName("__end_cap_")
765765
)
766766
else:
767-
map_endcap = map_.GetChildMemberWithName(
768-
"__end_cap_"
769-
).GetValueAsUnsigned(0)
767+
map_endcap = map_.GetChildMemberWithName("__cap_")
768+
if not map_endcap.IsValid():
769+
map_endcap = map_.GetChildMemberWithName("__end_cap_")
770+
map_endcap = map_endcap.GetValueAsUnsigned(0)
770771

771772
# check consistency
772773
if not map_first <= map_begin <= map_end <= map_endcap:

0 commit comments

Comments
 (0)