[cfe-commits] r39694 - /cfe/cfe/trunk/CodeGen/CodeGenFunction.cpp

clattner at cs.uiuc.edu clattner at cs.uiuc.edu
Wed Jul 11 09:47:14 PDT 2007


Author: clattner
Date: Wed Jul 11 11:47:14 2007
New Revision: 39694

URL: http://llvm.org/viewvc/llvm-project?rev=39694&view=rev
Log:
fix codegen of void return functions

Modified:
    cfe/cfe/trunk/CodeGen/CodeGenFunction.cpp

Modified: cfe/cfe/trunk/CodeGen/CodeGenFunction.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/CodeGen/CodeGenFunction.cpp?rev=39694&r1=39693&r2=39694&view=diff

==============================================================================
--- cfe/cfe/trunk/CodeGen/CodeGenFunction.cpp (original)
+++ cfe/cfe/trunk/CodeGen/CodeGenFunction.cpp Wed Jul 11 11:47:14 2007
@@ -44,7 +44,7 @@
 }
 
 bool CodeGenFunction::hasAggregateLLVMType(QualType T) {
-  return !T->isRealType() && !T->isPointerType();
+  return !T->isRealType() && !T->isPointerType() && !T->isVoidType();
 }
 
 





More information about the cfe-commits mailing list