diff options
| author | Anders Carlsson <andersca@mac.com> | 2009-09-29 01:15:29 +0000 |
|---|---|---|
| committer | Anders Carlsson <andersca@mac.com> | 2009-09-29 01:15:29 +0000 |
| commit | d30d820dc437325a351f960afdc3a7beb6a42873 (patch) | |
| tree | bb2af9795b2be781e9ef7a65ff882d438bdb9414 /clang/lib/CodeGen | |
| parent | e7a2b48572133097557b3dbab378cd25f817e5ee (diff) | |
| download | bcm5719-llvm-d30d820dc437325a351f960afdc3a7beb6a42873.tar.gz bcm5719-llvm-d30d820dc437325a351f960afdc3a7beb6a42873.zip | |
Make hasAggregateLLVMType use positive checks.
llvm-svn: 83037
Diffstat (limited to 'clang/lib/CodeGen')
| -rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp index 83181a497db..fff1a84f702 100644 --- a/clang/lib/CodeGen/CodeGenFunction.cpp +++ b/clang/lib/CodeGen/CodeGenFunction.cpp @@ -66,11 +66,7 @@ const llvm::Type *CodeGenFunction::ConvertType(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 !T->hasPointerRepresentation() && !T->isRealType() && - !T->isVoidType() && !T->isVectorType() && !T->isFunctionType() && - !T->isBlockPointerType() && !T->isMemberPointerType(); + return T->isRecordType() || T->isArrayType() || T->isAnyComplexType(); } void CodeGenFunction::EmitReturnBlock() { |

