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

Chris Lattner lattner at cs.uiuc.edu
Tue Sep 2 14:15:01 PDT 2003


Changes in directory llvm/lib/VMCore:

Type.cpp updated: 1.52 -> 1.53

---
Log message:

Ugh, fix bugs.  Ok, so the last fix wasn't as great as I thought it was.
Now we're back to: 131.730u, 0.330s, which is still quite an improvement,
but still quite unacceptable


---
Diffs of the changes:

Index: llvm/lib/VMCore/Type.cpp
diff -u llvm/lib/VMCore/Type.cpp:1.52 llvm/lib/VMCore/Type.cpp:1.53
--- llvm/lib/VMCore/Type.cpp:1.52	Tue Sep  2 11:46:41 2003
+++ llvm/lib/VMCore/Type.cpp	Tue Sep  2 14:14:12 2003
@@ -372,6 +372,7 @@
 }
 
 OpaqueType::OpaqueType() : DerivedType(OpaqueTyID) {
+  Recursive = false;
   setAbstract(true);
 #ifdef DEBUG_MERGE_TYPES
   std::cerr << "Derived new type: " << getDescription() << "\n";
@@ -426,7 +427,9 @@
 void DerivedType::setDerivedTypeProperties() {
   std::vector<const Type *> TypeStack;
   bool isAbstract = false, isRecursive = false;
-  
+
+  setAbstract(true);
+  setRecursive(true);
   getTypeProps(this, TypeStack, isAbstract, isRecursive);
   setAbstract(isAbstract);
   setRecursive(isRecursive);





More information about the llvm-commits mailing list