diff options
Diffstat (limited to 'include/llvm/Constant.h')
-rw-r--r-- | include/llvm/Constant.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Constant.h b/include/llvm/Constant.h index 4b3547ebf8..bfe65a6faa 100644 --- a/include/llvm/Constant.h +++ b/include/llvm/Constant.h @@ -88,8 +88,8 @@ public: static inline bool classof(const Constant *) { return true; } static inline bool classof(const GlobalValue *) { return true; } static inline bool classof(const Value *V) { - return V->getValueType() >= ConstantFirstVal && - V->getValueType() <= ConstantLastVal; + return V->getValueID() >= ConstantFirstVal && + V->getValueID() <= ConstantLastVal; } /// replaceUsesOfWithOnConstant - This method is a special form of |