[Lldb-commits] [lldb] 7aeae73 - [lldb][TypeSystemClang] Fix typo in assertion
Michael Buch via lldb-commits
lldb-commits at lists.llvm.org
Fri Feb 7 01:31:38 PST 2025
Author: Michael Buch
Date: 2025-02-07T09:30:27Z
New Revision: 7aeae7379d430404499f2929ffeea9416575a091
URL: https://github.com/llvm/llvm-project/commit/7aeae7379d430404499f2929ffeea9416575a091
DIFF: https://github.com/llvm/llvm-project/commit/7aeae7379d430404499f2929ffeea9416575a091.diff
LOG: [lldb][TypeSystemClang] Fix typo in assertion
This was meant to assert that we have the same number of names as we do
formal parameter types (since callers of this API rely on this being true).
Added:
Modified:
lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp
Removed:
################################################################################
diff --git a/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp b/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp
index 05625925d7cae37..39296ba5b437fe6 100644
--- a/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp
+++ b/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp
@@ -3190,7 +3190,7 @@ void DWARFASTParserClang::ParseChildParameters(
}
}
- assert(function_param_names.size() == function_param_names.size());
+ assert(function_param_names.size() == function_param_types.size());
}
clang::Decl *DWARFASTParserClang::GetClangDeclForDIE(const DWARFDIE &die) {
More information about the lldb-commits
mailing list