llvm-project
0a1288f9 - [lldb] Fix an assert on type lookup with a standalone line table (#243500)

Commit
1 day ago
[lldb] Fix an assert on type lookup with a standalone line table (#243500) `UpdateExternalModuleListIfNeeded()` walked the DWARF units with `GetNumCompileUnits()` as the bound. Since #217932, a file with `.debug_line` and no `.debug_info` has compile units made from its line tables and no DWARF units. The loop then passed a null unit to `dyn_cast`, which will assert. Bound the loop with the DWARF unit count instead.
Author
Parents
Loading