[Lldb-commits] [lldb] [LLDB] Fix GetIndexOfChildMemberWithName to handle anonymous structs. (PR #138487)
Michael Buch via lldb-commits
lldb-commits at lists.llvm.org
Tue May 6 03:01:02 PDT 2025
================
@@ -6743,7 +6743,11 @@ size_t TypeSystemClang::GetIndexOfChildMemberWithName(
if (field_name.empty()) {
CompilerType field_type = GetType(field->getType());
std::vector<uint32_t> save_indices = child_indexes;
- child_indexes.push_back(child_idx);
+ // We have to add on the number of non-empty base classes to this
+ // index!
----------------
Michael137 wrote:
This comment is redundant. The `non-empty base classes` is no longer true now that we're forwarding `omit_empty_base_classes`
https://github.com/llvm/llvm-project/pull/138487
More information about the lldb-commits
mailing list