aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-09-29 01:15:29 +0000
committerAnders Carlsson <andersca@mac.com>2009-09-29 01:15:29 +0000
commite322f30486249659c61dce9554be71cdbd71430a (patch)
treee300020a3f8056370c3da8352cdc6fb5cfbd627d /lib/CodeGen/CodeGenFunction.cpp
parent740256bafbba6c5b5cb95a5c5bd7db161f3b2833 (diff)
Make hasAggregateLLVMType use positive checks.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83037 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r--lib/CodeGen/CodeGenFunction.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/CodeGen/CodeGenFunction.cpp b/lib/CodeGen/CodeGenFunction.cpp
index 83181a497d..fff1a84f70 100644
--- a/lib/CodeGen/CodeGenFunction.cpp
+++ b/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() {