[llvm-commits] [llvm] r77618 - /llvm/trunk/include/llvm/Metadata.h
Devang Patel
dpatel at apple.com
Thu Jul 30 11:45:19 PDT 2009
Author: dpatel
Date: Thu Jul 30 13:45:09 2009
New Revision: 77618
URL: http://llvm.org/viewvc/llvm-project?rev=77618&view=rev
Log:
Fix MetadataBase::classof().
Thanks Benjamin Kramer!
Modified:
llvm/trunk/include/llvm/Metadata.h
Modified: llvm/trunk/include/llvm/Metadata.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Metadata.h?rev=77618&r1=77617&r2=77618&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Metadata.h (original)
+++ llvm/trunk/include/llvm/Metadata.h Thu Jul 30 13:45:09 2009
@@ -50,7 +50,7 @@
}
/// 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;
More information about the llvm-commits
mailing list