[cfe-commits] r61973 - /cfe/trunk/lib/CodeGen/CodeGenFunction.cpp
Daniel Dunbar
daniel at zuster.org
Thu Jan 8 18:44:18 PST 2009
Author: ddunbar
Date: Thu Jan 8 20:44:18 2009
New Revision: 61973
URL: http://llvm.org/viewvc/llvm-project?rev=61973&view=rev
Log:
Block pointer types are not aggregate types.
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=61973&r1=61972&r2=61973&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenFunction.cpp (original)
+++ cfe/trunk/lib/CodeGen/CodeGenFunction.cpp Thu Jan 8 20:44:18 2009
@@ -63,8 +63,11 @@
}
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) {
More information about the cfe-commits
mailing list