Fix <rdar://problem/6257645> clang static analyzer crashes when encountering blocks as objects
ASTContext::isObjCObjectPointerType() needs to consider blocks as objects. Note: My previous commit was done in the test directory...as a result, this commit was necessary. llvm-svn: 57914
This commit is contained in:
parent
e94444faf3
commit
5cfa5af630
|
@ -1807,6 +1807,11 @@ bool ASTContext::isObjCObjectPointerType(QualType Ty) const {
|
||||||
if (Ty->isObjCQualifiedIdType())
|
if (Ty->isObjCQualifiedIdType())
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
// Blocks are objects.
|
||||||
|
if (Ty->isBlockPointerType())
|
||||||
|
return true;
|
||||||
|
|
||||||
|
// All other object types are pointers.
|
||||||
if (!Ty->isPointerType())
|
if (!Ty->isPointerType())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue