diff options
-rw-r--r-- | lib/AST/ASTContext.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/AST/ASTContext.cpp b/lib/AST/ASTContext.cpp index cbbfe317d5..75c5888048 100644 --- a/lib/AST/ASTContext.cpp +++ b/lib/AST/ASTContext.cpp @@ -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; |