summaryrefslogtreecommitdiffstats
path: root/clang/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-06-27 18:10:00 +0000
committerChris Lattner <sabre@nondot.org>2007-06-27 18:10:00 +0000
commit69e70e506a713bcde672d64ddfa7edc7d6ada079 (patch)
treeca6393b22572e98b17c3bbb2bfb58f5ae15e0fbc /clang/CodeGen/CodeGenFunction.cpp
parentc8c3dadaa02c21f3f80567d175b4f2ba913c4a85 (diff)
downloadbcm5719-llvm-69e70e506a713bcde672d64ddfa7edc7d6ada079.tar.gz
bcm5719-llvm-69e70e506a713bcde672d64ddfa7edc7d6ada079.zip
fix codegen of void return functions
llvm-svn: 39694
Diffstat (limited to 'clang/CodeGen/CodeGenFunction.cpp')
-rw-r--r--clang/CodeGen/CodeGenFunction.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/CodeGen/CodeGenFunction.cpp b/clang/CodeGen/CodeGenFunction.cpp
index 59336489c97..07c33130f26 100644
--- a/clang/CodeGen/CodeGenFunction.cpp
+++ b/clang/CodeGen/CodeGenFunction.cpp
@@ -44,7 +44,7 @@ const llvm::Type *CodeGenFunction::ConvertType(QualType T) {
}
bool CodeGenFunction::hasAggregateLLVMType(QualType T) {
- return !T->isRealType() && !T->isPointerType();
+ return !T->isRealType() && !T->isPointerType() && !T->isVoidType();
}
OpenPOWER on IntegriCloud