[Lldb-commits] [PATCH] D153921: [lldb] Assert index is valid in DWARFDeclContext
Felipe de Azevedo Piovezan via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Tue Jun 27 15:31:33 PDT 2023
fdeazeve added inline comments.
================
Comment at: lldb/source/Plugins/SymbolFile/DWARF/DWARFDeclContext.h:58
Entry &operator[](uint32_t idx) {
- // "idx" must be valid
+ assert(idx < m_entries.size() && "invalid index");
return m_entries[idx];
----------------
Note the difference in how you used () between the two asserts
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D153921/new/
https://reviews.llvm.org/D153921
More information about the lldb-commits
mailing list