[Lldb-commits] [lldb] r282741 - To fix TestObjCMethods2/i386, allowed messaging nil ObjC objects as in x86_64.
Sean Callanan via lldb-commits
lldb-commits at lists.llvm.org
Thu Sep 29 10:57:34 PDT 2016
Author: spyffe
Date: Thu Sep 29 12:57:33 2016
New Revision: 282741
URL: http://llvm.org/viewvc/llvm-project?rev=282741&view=rev
Log:
To fix TestObjCMethods2/i386, allowed messaging nil ObjC objects as in x86_64.
Modified:
lldb/trunk/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV1.cpp
Modified: lldb/trunk/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV1.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV1.cpp?rev=282741&r1=282740&r2=282741&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV1.cpp (original)
+++ lldb/trunk/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV1.cpp Thu Sep 29 12:57:33 2016
@@ -162,6 +162,9 @@ UtilityFunction *AppleObjCRuntimeV1::Cre
" \n"
" struct __objc_object *obj = (struct "
"__objc_object*)$__lldb_arg_obj; \n"
+ " if ($__lldb_arg_obj == (void *)0) "
+ " \n"
+ " return; // nil is ok "
" (int)strlen(obj->isa->name); "
" \n"
"} "
More information about the lldb-commits
mailing list