[Lldb-commits] [lldb] [LLDB] Fix crash in TypeSystemClang::GetIndexofChildMemberWithName. (PR #117808)

Michael Buch via lldb-commits lldb-commits at lists.llvm.org
Thu Nov 28 02:52:13 PST 2024


================
@@ -6754,12 +6754,12 @@ size_t TypeSystemClang::GetIndexOfChildMemberWithName(
           llvm::StringRef field_name = field->getName();
           if (field_name.empty()) {
             CompilerType field_type = GetType(field->getType());
+            std::vector<uint32_t> save_indices = child_indexes;
----------------
Michael137 wrote:

Hmm nevermind. IIUC the reason it's clearing the indices is that it is trying to backtrack if we failed to find the member after searching through a certain path.

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


More information about the lldb-commits mailing list