Page MenuHomePhabricator

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

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

Details

Summary

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.Tue, Jun 1, 1:58 AM
teemperor requested review of this revision.Tue, Jun 1, 1:58 AM
This revision is now accepted and ready to land.Tue, Jun 1, 9:52 AM
This revision was landed with ongoing or failed builds.Fri, Jun 4, 3:07 AM
This revision was automatically updated to reflect the committed changes.