HomePhabricator

[lldb][NFC] Remove a redundant call to weak_ptr::expired

Authored by teemperor on Fri, Jun 4, 1:59 AM.

Description

[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