forked from OSchip/llvm-project
bug 122:
Remove redundancy in User::classof(Value*); GlobalValue isa Constant now. llvm-svn: 14924
This commit is contained in:
parent
591fc1ebf5
commit
f820a23365
|
@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue