Another fix for the objective C runtime object checker to not use NULL when it isn't defined.

llvm-svn: 123617
This commit is contained in:
Greg Clayton 2011-01-17 06:17:42 +00:00
parent 23af0d896d
commit 388b33b5cd
1 changed files with 1 additions and 1 deletions

View File

@ -156,7 +156,7 @@ AppleObjCRuntimeV2::CreateObjectChecker(const char *name)
" 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);