diff options
author | Chris Lattner <sabre@nondot.org> | 2004-02-17 03:03:47 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-02-17 03:03:47 +0000 |
commit | ac89164fa224ce82c73379be69a6022effeba111 (patch) | |
tree | cf0bd9c07b647538ff1cfd152acd24bab04c1943 /lib/VMCore/Type.cpp | |
parent | fcdb2c2a7f42b6a28678636585c5dd0bb0cffc7b (diff) | |
download | external_llvm-ac89164fa224ce82c73379be69a6022effeba111.zip external_llvm-ac89164fa224ce82c73379be69a6022effeba111.tar.gz external_llvm-ac89164fa224ce82c73379be69a6022effeba111.tar.bz2 |
Adjust to recent changes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11514 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Type.cpp')
-rw-r--r-- | lib/VMCore/Type.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/VMCore/Type.cpp b/lib/VMCore/Type.cpp index 9a40457..c863e52 100644 --- a/lib/VMCore/Type.cpp +++ b/lib/VMCore/Type.cpp @@ -42,7 +42,7 @@ static std::map<const Type*, std::string> ConcreteTypeDescriptions; static std::map<const Type*, std::string> 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"; |