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

Greg Clayton gclayton at apple.com
Sun Jan 16 22:17:42 PST 2011


Author: gclayton
Date: Mon Jan 17 00:17:42 2011
New Revision: 123617

URL: http://llvm.org/viewvc/llvm-project?rev=123617&view=rev
Log:
Another fix for the objective C runtime object checker to not use NULL when it isn't defined.

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=123617&r1=123616&r2=123617&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp (original)
+++ lldb/trunk/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp Mon Jan 17 00:17:42 2011
@@ -156,7 +156,7 @@
                           "   if ($__lldb_arg_obj == (void *)0)                 \n"
                           "       return; // nil is ok                          \n" 
                           "    void **$isa_ptr = (void **)$__lldb_arg_obj;      \n"
-                          "    if (*$isa_ptr == NULL || !gdb_class_getClass(*$isa_ptr)) \n"
+                          "    if (*$isa_ptr == (void *)0 || !gdb_class_getClass(*$isa_ptr)) \n"
                           "       *((volatile int *)0) = 'ocgc';                \n"
                           "}                                                    \n", 
                           name);





More information about the lldb-commits mailing list