diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-07-17 23:32:11 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-07-17 23:32:11 +0000 |
commit | e3d19aac69bace9eda1620acf5ecfa6c07efd4a6 (patch) | |
tree | 54ec3bf2494a4c358fbbd4554bb2af5c1d7c97d0 /include/llvm/User.h | |
parent | 3e7bb400bf7632f5000be98f83522b28c2eb8de2 (diff) | |
download | external_llvm-e3d19aac69bace9eda1620acf5ecfa6c07efd4a6.zip external_llvm-e3d19aac69bace9eda1620acf5ecfa6c07efd4a6.tar.gz external_llvm-e3d19aac69bace9eda1620acf5ecfa6c07efd4a6.tar.bz2 |
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.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/llvm/User.h b/include/llvm/User.h index 310d356..bd3eb58 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); } }; |