- Remove dead code
- Fix incorrect null-reference check
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
lldb/source/Core/FormatEntity.cpp | ||
---|---|---|
714–715 | This null-check is unreachable and redundant. valobj is already completely null-checked at lines 675 and 705. | |
1695 | Checking var_value_sp for null here is moot; it's already dereferenced in the preceding line. However, exe_scope does require a null-check here, and from the context, it appears that was the original intent thwarted by a typo. |
This null-check is unreachable and redundant. valobj is already completely null-checked at lines 675 and 705.