[cfe-commits] r83037 - /cfe/trunk/lib/CodeGen/CodeGenFunction.cpp

Anders Carlsson andersca at mac.com
Mon Sep 28 18:15:29 PDT 2009


Author: andersca
Date: Mon Sep 28 20:15:29 2009
New Revision: 83037

URL: http://llvm.org/viewvc/llvm-project?rev=83037&view=rev
Log:
Make hasAggregateLLVMType use positive checks.

Modified:
    cfe/trunk/lib/CodeGen/CodeGenFunction.cpp

Modified: cfe/trunk/lib/CodeGen/CodeGenFunction.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenFunction.cpp?rev=83037&r1=83036&r2=83037&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenFunction.cpp (original)
+++ cfe/trunk/lib/CodeGen/CodeGenFunction.cpp Mon Sep 28 20:15:29 2009
@@ -66,11 +66,7 @@
 }
 
 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() {





More information about the cfe-commits mailing list