[llvm-branch-commits] [cfe-branch] r134799 - /cfe/branches/type-system-rewrite/lib/CodeGen/CGCall.cpp

Chris Lattner sabre at nondot.org
Fri Jul 8 23:13:48 PDT 2011


Author: lattner
Date: Sat Jul  9 01:13:48 2011
New Revision: 134799

URL: http://llvm.org/viewvc/llvm-project?rev=134799&view=rev
Log:
fix assertion on CodeGenCXX/thunks-available-externally.cpp.


Modified:
    cfe/branches/type-system-rewrite/lib/CodeGen/CGCall.cpp

Modified: cfe/branches/type-system-rewrite/lib/CodeGen/CGCall.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/type-system-rewrite/lib/CodeGen/CGCall.cpp?rev=134799&r1=134798&r2=134799&view=diff
==============================================================================
--- cfe/branches/type-system-rewrite/lib/CodeGen/CGCall.cpp (original)
+++ cfe/branches/type-system-rewrite/lib/CodeGen/CGCall.cpp Sat Jul  9 01:13:48 2011
@@ -713,7 +713,7 @@
     return GetFunctionType(*Info, FPT->isVariadic());
   }
 
-  return llvm::Type::getVoidTy(getLLVMContext());
+  return llvm::StructType::get(getLLVMContext());
 }
 
 void CodeGenModule::ConstructAttributeList(const CGFunctionInfo &FI,





More information about the llvm-branch-commits mailing list