[Lldb-commits] [lldb] r167160 - /lldb/trunk/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp

Greg Clayton gclayton at apple.com
Wed Oct 31 12:05:35 PDT 2012


Author: gclayton
Date: Wed Oct 31 14:05:35 2012
New Revision: 167160

URL: http://llvm.org/viewvc/llvm-project?rev=167160&view=rev
Log:
Patch for issue found by Carlo Kok. Fixed a type issue where an ';' was incorrectly following an if statement. There actually isn't a need for the if statement, so it was removed.


Modified:
    lldb/trunk/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp

Modified: lldb/trunk/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp?rev=167160&r1=167159&r2=167160&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp (original)
+++ lldb/trunk/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp Wed Oct 31 14:05:35 2012
@@ -1713,9 +1713,7 @@
             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);
             }
         }
     }





More information about the lldb-commits mailing list