diff options
Diffstat (limited to 'include/llvm/GlobalVariable.h')
-rw-r--r-- | include/llvm/GlobalVariable.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/GlobalVariable.h b/include/llvm/GlobalVariable.h index f301844..3ee7f6d 100644 --- a/include/llvm/GlobalVariable.h +++ b/include/llvm/GlobalVariable.h @@ -61,8 +61,8 @@ public: inline bool isConstant() const { return Constant; } // Methods for support type inquiry through isa, cast, and dyn_cast: - static inline bool isa(const GlobalVariable *) { return true; } - static inline bool isa(const Value *V) { + static inline bool classof(const GlobalVariable *) { return true; } + static inline bool classof(const Value *V) { return V->getValueType() == Value::GlobalVal; } }; |