aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-08-09 18:26:27 +0000
committerAnders Carlsson <andersca@mac.com>2009-08-09 18:26:27 +0000
commit237957c45774713f81fbd5394b3db4317fef0938 (patch)
treedc262157e60d9a731c838e41b49593980c283fc8 /lib/CodeGen/CodeGenFunction.cpp
parent25b4fdb9d63095448e6cbc97b8865b36b0c8cbb6 (diff)
Improve handling of member pointers.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78536 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r--lib/CodeGen/CodeGenFunction.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/CodeGenFunction.cpp b/lib/CodeGen/CodeGenFunction.cpp
index 0b012592e4..6135f65513 100644
--- a/lib/CodeGen/CodeGenFunction.cpp
+++ b/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() {