diff options
author | Chris Lattner <sabre@nondot.org> | 2007-08-10 17:02:28 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-08-10 17:02:28 +0000 |
commit | cc666af7d40826e6863b9baea2e90c0b46f68b1a (patch) | |
tree | 7c15915042761a5803bf7e79f5cfdf2cd2d64a74 /CodeGen/CodeGenFunction.cpp | |
parent | 461766a5c05a90788af05fdc8cf0645599fb042b (diff) |
implement initial codegen for aggregate return functions. This implements
codegen for:
_Complex double bar(int);
void test(_Complex double*);
void test2(int c) {
_Complex double X;
X = bar(1);
test(&X);
}
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@40993 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'CodeGen/CodeGenFunction.cpp')
-rw-r--r-- | CodeGen/CodeGenFunction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CodeGen/CodeGenFunction.cpp b/CodeGen/CodeGenFunction.cpp index 8cea3e7aaf..389bd05a70 100644 --- a/CodeGen/CodeGenFunction.cpp +++ b/CodeGen/CodeGenFunction.cpp @@ -45,7 +45,7 @@ const llvm::Type *CodeGenFunction::ConvertType(QualType T) { bool CodeGenFunction::hasAggregateLLVMType(QualType T) { return !T->isRealType() && !T->isPointerType() && !T->isVoidType() && - !T->isVectorType(); + !T->isVectorType() && !T->isFunctionType(); } |