mirror of
https://github.com/intel/llvm.git
synced 2026-02-02 01:30:24 +08:00
fix codegen of void return functions
llvm-svn: 39694
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user