summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2009-07-30 18:45:09 +0000
committerDevang Patel <dpatel@apple.com>2009-07-30 18:45:09 +0000
commit57eae13c8deefa1b684182b6b70e66a1164b480d (patch)
tree9ec83a71cf3edf116567a4f643e06cc90b1593e5 /llvm
parentbd8556e0fb84f3b5e00c45006e3e001a5da488c5 (diff)
downloadbcm5719-llvm-57eae13c8deefa1b684182b6b70e66a1164b480d.tar.gz
bcm5719-llvm-57eae13c8deefa1b684182b6b70e66a1164b480d.zip
Fix MetadataBase::classof().
Thanks Benjamin Kramer! llvm-svn: 77618
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/Metadata.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/Metadata.h b/llvm/include/llvm/Metadata.h
index 0515979c8bf..c4264495ee5 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;
OpenPOWER on IntegriCloud