Skip to content

Commit

Permalink
[lldb][DataFormatter][NFC] Remove duplicate null-check in std::map it…
Browse files Browse the repository at this point in the history
…erator formatter

The nullness is already checked a few lines before this.
  • Loading branch information
Michael137 committed Jul 4, 2024
1 parent 2dda8a2 commit 30df629
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lldb/source/Plugins/Language/CPlusPlus/LibCxx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -245,9 +245,6 @@ lldb_private::formatters::LibCxxMapIteratorSyntheticFrontEnd::Update() {
if (!target_sp)
return lldb::ChildCacheState::eRefetch;

if (!valobj_sp)
return lldb::ChildCacheState::eRefetch;

// this must be a ValueObject* because it is a child of the ValueObject we
// are producing children for it if were a ValueObjectSP, we would end up
// with a loop (iterator -> synthetic -> child -> parent == iterator) and
Expand Down

0 comments on commit 30df629

Please sign in to comment.