Give embedded metadata its own type instead of relying on EmptyStructTy.
[oota-llvm.git] / include / llvm / Constants.h
index d72ca0b7433ba52a60bdb278ee60853eace66857..9e95a08fc962c6cbba8d49fb86b987b60159e6fe 100644 (file)
@@ -860,10 +860,10 @@ public:
   ///
   const char *end() const { return StrEnd; }
 
-  /// getType() specialization - Type is always an empty struct.
+  /// getType() specialization - Type is always MetadataTy.
   ///
   inline const Type *getType() const {
-    return Type::EmptyStructTy;
+    return Type::MetadataTy;
   }
 
   /// isNullValue - Return true if this is the value that would be returned by