]> granicus.if.org Git - clang/commitdiff
Block pointer types are not aggregate types.
authorDaniel Dunbar <daniel@zuster.org>
Fri, 9 Jan 2009 02:44:18 +0000 (02:44 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Fri, 9 Jan 2009 02:44:18 +0000 (02:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61973 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CodeGenFunction.cpp

index 2ef4bcf981019c569367f581455078ed5faf9342..c1a34389b8d0d91d44a882ea8a398497a73e1cfa 100644 (file)
@@ -63,8 +63,11 @@ bool CodeGenFunction::isObjCPointerType(QualType T) {
 }
 
 bool CodeGenFunction::hasAggregateLLVMType(QualType T) {
+  // FIXME: Use positive checks instead of negative ones to be more
+  // robust in the face of extension.
   return !isObjCPointerType(T) &&!T->isRealType() && !T->isPointerLikeType() &&
-    !T->isVoidType() && !T->isVectorType() && !T->isFunctionType();
+    !T->isVoidType() && !T->isVectorType() && !T->isFunctionType() && 
+    !T->isBlockPointerType();
 }
 
 void CodeGenFunction::FinishFunction(SourceLocation EndLoc) {