Adjust to recent changes

llvm-svn: 11514
This commit is contained in:
Chris Lattner 2004-02-17 03:03:47 +00:00
parent 946e46596f
commit ecc7d6e27a
1 changed files with 2 additions and 2 deletions

View File

@ -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";