]> granicus.if.org Git - clang/commitdiff
Make hasAggregateLLVMType use positive checks.
authorAnders Carlsson <andersca@mac.com>
Tue, 29 Sep 2009 01:15:29 +0000 (01:15 +0000)
committerAnders Carlsson <andersca@mac.com>
Tue, 29 Sep 2009 01:15:29 +0000 (01:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83037 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CodeGenFunction.cpp

index 83181a497db27e306b3d4b678b23b8cc487318b6..fff1a84f702a3d5b6bf226a29a3df190a380ea25 100644 (file)
@@ -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() {