From 99b9ddead7b77d7cd9f803472ec0c030ac2d4f15 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 2 Sep 2003 19:14:12 +0000 Subject: [PATCH] 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 llvm-svn: 8322 --- llvm/lib/VMCore/Type.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/llvm/lib/VMCore/Type.cpp b/llvm/lib/VMCore/Type.cpp index 4d838e2151d2..be5c66698b1e 100644 --- a/llvm/lib/VMCore/Type.cpp +++ b/llvm/lib/VMCore/Type.cpp @@ -372,6 +372,7 @@ PointerType::PointerType(const Type *E) : SequentialType(PointerTyID, E) { } OpaqueType::OpaqueType() : DerivedType(OpaqueTyID) { + Recursive = false; setAbstract(true); #ifdef DEBUG_MERGE_TYPES std::cerr << "Derived new type: " << getDescription() << "\n"; @@ -426,7 +427,9 @@ static void getTypeProps(const Type *Ty, std::vector &TypeStack, void DerivedType::setDerivedTypeProperties() { std::vector TypeStack; bool isAbstract = false, isRecursive = false; - + + setAbstract(true); + setRecursive(true); getTypeProps(this, TypeStack, isAbstract, isRecursive); setAbstract(isAbstract); setRecursive(isRecursive);