summaryrefslogtreecommitdiff
path: root/include/llvm/User.h
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-07-17 23:32:11 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-07-17 23:32:11 +0000
commite3d19aac69bace9eda1620acf5ecfa6c07efd4a6 (patch)
tree54ec3bf2494a4c358fbbd4554bb2af5c1d7c97d0 /include/llvm/User.h
parent3e7bb400bf7632f5000be98f83522b28c2eb8de2 (diff)
downloadllvm-e3d19aac69bace9eda1620acf5ecfa6c07efd4a6.tar.gz
llvm-e3d19aac69bace9eda1620acf5ecfa6c07efd4a6.tar.bz2
llvm-e3d19aac69bace9eda1620acf5ecfa6c07efd4a6.tar.xz
bug 122:
Remove redundancy in User::classof(Value*); GlobalValue isa Constant now. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14924 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/User.h')
-rw-r--r--include/llvm/User.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/llvm/User.h b/include/llvm/User.h
index 310d356a53..bd3eb5850b 100644
--- a/include/llvm/User.h
+++ b/include/llvm/User.h
@@ -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);
}
};