diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-01-09 02:44:18 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-01-09 02:44:18 +0000 |
commit | a782ca76cc7dfdd69e331a4fa722fc23b18d5c34 (patch) | |
tree | dabfb440a48b2523ed7c8123110b39ffbc943656 /lib/CodeGen/CodeGenFunction.cpp | |
parent | 51efe56116a6283ba707cfb8bf8b4e0b13cb41ac (diff) |
Block pointer types are not aggregate types.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61973 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r-- | lib/CodeGen/CodeGenFunction.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/CodeGen/CodeGenFunction.cpp b/lib/CodeGen/CodeGenFunction.cpp index 2ef4bcf981..c1a34389b8 100644 --- a/lib/CodeGen/CodeGenFunction.cpp +++ b/lib/CodeGen/CodeGenFunction.cpp @@ -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) { |