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 | 90d9120453ed84fdf737ffaf492fb6e7673b31aa (patch) | |
tree | 10f9b8fe17225d0f585b68f3adb05000b96665dd /clang/CodeGen/CodeGenFunction.cpp | |
parent | 02697701d923deb360f0ce62182808a37d48c13b (diff) | |
download | bcm5719-llvm-90d9120453ed84fdf737ffaf492fb6e7673b31aa.tar.gz bcm5719-llvm-90d9120453ed84fdf737ffaf492fb6e7673b31aa.zip |
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);
}
llvm-svn: 40993
Diffstat (limited to 'clang/CodeGen/CodeGenFunction.cpp')
-rw-r--r-- | clang/CodeGen/CodeGenFunction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/CodeGen/CodeGenFunction.cpp b/clang/CodeGen/CodeGenFunction.cpp index 8cea3e7aafb..389bd05a70d 100644 --- a/clang/CodeGen/CodeGenFunction.cpp +++ b/clang/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(); } |