Fix MetadataBase::classof().
authorDevang Patel <dpatel@apple.com>
Thu, 30 Jul 2009 18:45:09 +0000 (18:45 +0000)
committerDevang Patel <dpatel@apple.com>
Thu, 30 Jul 2009 18:45:09 +0000 (18:45 +0000)
Thanks Benjamin Kramer!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77618 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Metadata.h

index 0515979c8bf8e8e644f38008d4c5afa209732e5c..c4264495ee5552f2ea092ae42959b8d98cb8838e 100644 (file)
@@ -50,7 +50,7 @@ public:
   }
 
   /// Methods for support type inquiry through isa, cast, and dyn_cast:
-  static inline bool classof(const MDString *) { return true; }
+  static inline bool classof(const MetadataBase *) { return true; }
   static bool classof(const Value *V) {
     return V->getValueID() == MDStringVal || V->getValueID() == MDNodeVal
       || V->getValueID() == NamedMDNodeVal;