[llvm-commits] CVS: llvm/lib/VMCore/Type.cpp

Chris Lattner lattner at cs.uiuc.edu
Wed Jul 7 01:49:01 PDT 2004


Changes in directory llvm/lib/VMCore:

Type.cpp updated: 1.106 -> 1.107

---
Log message:

The bytecode reader wants to be able to read types that are not quite resolved
yet, then resolve them in it's own sweet time.  We must support this.


---
Diffs of the changes:  (+2 -1)

Index: llvm/lib/VMCore/Type.cpp
diff -u llvm/lib/VMCore/Type.cpp:1.106 llvm/lib/VMCore/Type.cpp:1.107
--- llvm/lib/VMCore/Type.cpp:1.106	Tue Jul  6 18:25:19 2004
+++ llvm/lib/VMCore/Type.cpp	Wed Jul  7 01:48:27 2004
@@ -402,7 +402,8 @@
                            const std::vector<const Type*> &Params, 
                            bool IsVarArgs) : DerivedType(FunctionTyID), 
                                              isVarArgs(IsVarArgs) {
-  assert((Result->isFirstClassType() || Result == Type::VoidTy) && 
+  assert((Result->isFirstClassType() || Result == Type::VoidTy ||
+         isa<OpaqueType>(Result)) && 
          "LLVM functions cannot return aggregates");
   bool isAbstract = Result->isAbstract();
   ContainedTys.reserve(Params.size()+1);





More information about the llvm-commits mailing list