fix codegen of void return functions

llvm-svn: 39694
This commit is contained in:
Chris Lattner 2007-06-27 18:10:00 +00:00
parent c8c3dadaa0
commit 69e70e506a
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}