mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-25 12:50:00 +00:00
Fix MetadataBase::classof().
Thanks Benjamin Kramer! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77618 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0fffbafa96
commit
eeae0641bf
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user