diff options
author | Anders Carlsson <andersca@mac.com> | 2009-08-09 18:26:27 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-08-09 18:26:27 +0000 |
commit | f48123b4136d80b1a00f3bd5bd186d40cac11ead (patch) | |
tree | f4b530f7d2ccb5cab1b510a0e89e5e21feb5dc89 /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | a96114ed087b924b9e8c912dacf364d5738666be (diff) | |
download | bcm5719-llvm-f48123b4136d80b1a00f3bd5bd186d40cac11ead.tar.gz bcm5719-llvm-f48123b4136d80b1a00f3bd5bd186d40cac11ead.zip |
Improve handling of member pointers.
llvm-svn: 78536
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp index 0b012592e4f..6135f65513d 100644 --- a/clang/lib/CodeGen/CodeGenFunction.cpp +++ b/clang/lib/CodeGen/CodeGenFunction.cpp @@ -68,9 +68,9 @@ 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() && + return !T->hasPointerRepresentation() && !T->isRealType() && !T->isVoidType() && !T->isVectorType() && !T->isFunctionType() && - !T->isBlockPointerType(); + !T->isBlockPointerType() && !T->isMemberPointerType(); } void CodeGenFunction::EmitReturnBlock() { |