Skip to content

Commit 33475b1

Browse files
committed
fixup! provide more context in comment
1 parent a421f18 commit 33475b1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lldb/source/Plugins/Language/CPlusPlus/LibCxxUnorderedMap.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,10 @@ lldb::ValueObjectSP lldb_private::formatters::
168168

169169
value_sp = node_sp->GetChildMemberWithName("__value_");
170170
if (!value_sp) {
171-
// Newer libc++ versions wrap the `__value_` in an anonymous union.
171+
// Since D101206, libc++ wraps the `__value_` in an anonymous union.
172+
// Child 0: __hash_node_base base class
173+
// Child 1: __hash_
174+
// Child 2: anonymous union
172175
auto anon_union_sp = node_sp->GetChildAtIndex(2);
173176
if (!anon_union_sp)
174177
return nullptr;

0 commit comments

Comments
 (0)