Add a 'normalize' method to the Triple class, which takes a mucked up
[oota-llvm.git] / include / llvm / AbstractTypeUser.h
index b6cceb4011ad3ff099bb97644f5c2c05cf18a298..81f5c5c7680d87ef4b6f8b0fe76cc3963923287d 100644 (file)
@@ -146,6 +146,7 @@ class PATypeHolder {
   mutable const Type *Ty;
   void destroy();
 public:
+  PATypeHolder() : Ty(0) {}
   PATypeHolder(const Type *ty) : Ty(ty) {
     addRef();
   }
@@ -153,7 +154,7 @@ public:
     addRef();
   }
 
-  ~PATypeHolder() { if (Ty) dropRef(); }
+  ~PATypeHolder() { dropRef(); }
 
   operator Type *() const { return get(); }
   Type *get() const;