From 57eae13c8deefa1b684182b6b70e66a1164b480d 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! llvm-svn: 77618 --- llvm/include/llvm/Metadata.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/include/llvm/Metadata.h b/llvm/include/llvm/Metadata.h index 0515979..c426449 100644 --- a/llvm/include/llvm/Metadata.h +++ b/llvm/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; -- 2.7.4