From ecc7d6e27a475cc9d9adfce57a0363a014c4176a Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 17 Feb 2004 03:03:47 +0000 Subject: [PATCH] Adjust to recent changes llvm-svn: 11514 --- llvm/lib/VMCore/Type.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/lib/VMCore/Type.cpp b/llvm/lib/VMCore/Type.cpp index 9a40457600df..c863e52f9f5b 100644 --- a/llvm/lib/VMCore/Type.cpp +++ b/llvm/lib/VMCore/Type.cpp @@ -42,7 +42,7 @@ static std::map ConcreteTypeDescriptions; static std::map AbstractTypeDescriptions; Type::Type(const std::string &name, PrimitiveID id) - : Value(Type::TypeTy, Value::TypeVal), ForwardType(0) { + : Value(Type::TypeTy, Value::TypeVal), RefCount(0), ForwardType(0) { if (!name.empty()) ConcreteTypeDescriptions[this] = name; ID = id; @@ -976,7 +976,7 @@ void DerivedType::removeAbstractTypeUser(AbstractTypeUser *U) const { << *this << "][" << i << "] User = " << U << "\n"; #endif - if (AbstractTypeUsers.empty() && RefCount == 0 && isAbstract()) { + if (AbstractTypeUsers.empty() && getRefCount() == 0 && isAbstract()) { #ifdef DEBUG_MERGE_TYPES std::cerr << "DELETEing unused abstract type: <" << *this << ">[" << (void*)this << "]" << "\n";