Remove redundancy in User::classof(Value*); GlobalValue isa Constant now.

llvm-svn: 14924
This commit is contained in:
Reid Spencer 2004-07-17 23:32:11 +00:00
parent 591fc1ebf5
commit f820a23365
1 changed files with 1 additions and 2 deletions

View File

@ -87,8 +87,7 @@ public:
// Methods for support type inquiry through isa, cast, and dyn_cast:
static inline bool classof(const User *) { return true; }
static inline bool classof(const Value *V) {
return isa<Instruction>(V) || isa<GlobalVariable>(V) ||
isa<Constant>(V);
return isa<Instruction>(V) || isa<Constant>(V);
}
};