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

Chris Lattner lattner at cs.uiuc.edu
Mon Feb 16 21:04:21 PST 2004


Changes in directory llvm/lib/VMCore:

Type.cpp updated: 1.94 -> 1.95

---
Log message:

Adjust to recent changes


---
Diffs of the changes:  (+2 -2)

Index: llvm/lib/VMCore/Type.cpp
diff -u llvm/lib/VMCore/Type.cpp:1.94 llvm/lib/VMCore/Type.cpp:1.95
--- llvm/lib/VMCore/Type.cpp:1.94	Mon Feb  9 15:01:23 2004
+++ llvm/lib/VMCore/Type.cpp	Mon Feb 16 21:03:47 2004
@@ -42,7 +42,7 @@
 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 @@
             << *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";





More information about the llvm-commits mailing list