diff --git a/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp b/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp index 1b4c0ad39e6d..4b13cba5bb66 100644 --- a/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp +++ b/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp @@ -1713,9 +1713,7 @@ AppleObjCRuntimeV2::GetISAHashTablePointer () if (gdb_objc_realized_classes_ptr != LLDB_INVALID_ADDRESS) { Error error; - lldb::addr_t ptr = process->ReadPointerFromMemory(gdb_objc_realized_classes_ptr, error); - if (ptr != LLDB_INVALID_ADDRESS); - m_isa_hash_table_ptr = ptr; + m_isa_hash_table_ptr = process->ReadPointerFromMemory(gdb_objc_realized_classes_ptr, error); } } }