Page MenuHomePhabricator

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

Authored by teemperor on Jun 1 2021, 1:58 AM.



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.

Diff Detail

Event Timeline

teemperor created this revision.Jun 1 2021, 1:58 AM
teemperor requested review of this revision.Jun 1 2021, 1:58 AM
This revision is now accepted and ready to land.Jun 1 2021, 9:52 AM
This revision was landed with ongoing or failed builds.Jun 4 2021, 3:07 AM
This revision was automatically updated to reflect the committed changes.