Author: Walter Erquinigo Date: 2023-11-03T01:16:35-04:00 New Revision: 61964f17478b0c84b66d34637f482e40b4be300c
URL: https://github.com/llvm/llvm-project/commit/61964f17478b0c84b66d34637f482e40b4be300c DIFF: https://github.com/llvm/llvm-project/commit/61964f17478b0c84b66d34637f482e40b4be300c.diff LOG: [LLDB][easy] Fix a bug in DummySyntheticFrontEnd (#71143) DummySyntheticFrontEnd is implementing correctly CalculateNumChildren but not MightHaveChildren, where instead of delegating its action, it was returning true. This fixes that simple bug. Added: Modified: lldb/source/Core/ValueObjectSyntheticFilter.cpp Removed: ################################################################################ diff --git a/lldb/source/Core/ValueObjectSyntheticFilter.cpp b/lldb/source/Core/ValueObjectSyntheticFilter.cpp index 59ed780b654f3af..43bc532c4a0410b 100644 --- a/lldb/source/Core/ValueObjectSyntheticFilter.cpp +++ b/lldb/source/Core/ValueObjectSyntheticFilter.cpp @@ -41,7 +41,7 @@ class DummySyntheticFrontEnd : public SyntheticChildrenFrontEnd { return m_backend.GetIndexOfChildWithName(name); } - bool MightHaveChildren() override { return true; } + bool MightHaveChildren() override { return m_backend.MightHaveChildren(); } bool Update() override { return false; } }; _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits