[Lldb-commits] [lldb] r152471 - /lldb/trunk/source/Symbol/ClangASTContext.cpp
Sean Callanan
scallanan at apple.com
Fri Mar 9 17:59:11 PST 2012
Author: spyffe
Date: Fri Mar 9 19:59:11 2012
New Revision: 152471
URL: http://llvm.org/viewvc/llvm-project?rev=152471&view=rev
Log:
Hardened isObjCObjectPointerType() against NULLs.
Modified:
lldb/trunk/source/Symbol/ClangASTContext.cpp
Modified: lldb/trunk/source/Symbol/ClangASTContext.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Symbol/ClangASTContext.cpp?rev=152471&r1=152470&r2=152471&view=diff
==============================================================================
--- lldb/trunk/source/Symbol/ClangASTContext.cpp (original)
+++ lldb/trunk/source/Symbol/ClangASTContext.cpp Fri Mar 9 19:59:11 2012
@@ -5980,6 +5980,8 @@
!qual_type->isObjCIdType())
{
const ObjCObjectPointerType *obj_pointer_type = dyn_cast<ObjCObjectPointerType>(qual_type);
+ if (!obj_pointer_type)
+ *class_type = NULL;
*class_type = QualType(obj_pointer_type->getInterfaceType(), 0).getAsOpaquePtr();
}
}
More information about the lldb-commits
mailing list