mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-14 11:39:35 +00:00
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())
|
||||
return true;
|
||||
|
||||
// Blocks are objects.
|
||||
if (Ty->isBlockPointerType())
|
||||
return true;
|
||||
|
||||
// All other object types are pointers.
|
||||
if (!Ty->isPointerType())
|
||||
return false;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user