From eeae0641bf3f8f62509ad488f716a7da7f44cbc9 Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Thu, 30 Jul 2009 18:45:09 +0000 Subject: [PATCH] Fix MetadataBase::classof(). Thanks Benjamin Kramer! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77618 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Metadata.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/llvm/Metadata.h b/include/llvm/Metadata.h index 0515979c8bf..c4264495ee5 100644 --- a/include/llvm/Metadata.h +++ b/include/llvm/Metadata.h @@ -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;