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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57914
91177308-0d34-0410-b5e6-
96231b3b80d8
if (Ty->isObjCQualifiedIdType())
return true;
+ // Blocks are objects.
+ if (Ty->isBlockPointerType())
+ return true;
+
+ // All other object types are pointers.
if (!Ty->isPointerType())
return false;