[lldb][NFC] Remove a redundant call to weak_ptr::expired
authorRaphael Isemann <teemperor@gmail.com>
Fri, 4 Jun 2021 08:59:31 +0000 (10:59 +0200)
committerRaphael Isemann <teemperor@gmail.com>
Fri, 4 Jun 2021 10:06:53 +0000 (12:06 +0200)
commit0a655c62eca878cd5f366c08a4a5fee1b8723ce8
tree2cf0b04247b349aea760eb5e266465c48d1c7893
parentb0cc7b53a53f180c0b70b8b2f02999be78a32395
[lldb][NFC] Remove a redundant call to weak_ptr::expired

The `lock` call directly will check for us if the `weak_ptr` is expired and
returns an invalid `shared_ptr` (which we correctly handle), so this check is
redundant.

Reviewed By: JDevlieghere

Differential Revision: https://reviews.llvm.org/D103442
lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp