forked from OSchip/llvm-project
[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
This commit is contained in:
parent
b0cc7b53a5
commit
0a655c62ec
|
@ -3792,7 +3792,7 @@ void SymbolFileDWARF::DumpClangAST(Stream &s) {
|
|||
}
|
||||
|
||||
SymbolFileDWARFDebugMap *SymbolFileDWARF::GetDebugMapSymfile() {
|
||||
if (m_debug_map_symfile == nullptr && !m_debug_map_module_wp.expired()) {
|
||||
if (m_debug_map_symfile == nullptr) {
|
||||
lldb::ModuleSP module_sp(m_debug_map_module_wp.lock());
|
||||
if (module_sp) {
|
||||
m_debug_map_symfile =
|
||||
|
|
Loading…
Reference in New Issue