diff --git a/include/llvm/Constants.h b/include/llvm/Constants.h index b927120ad6e..e91114f7148 100644 --- a/include/llvm/Constants.h +++ b/include/llvm/Constants.h @@ -350,7 +350,7 @@ protected: const std::vector& IdxList, const Type *Ty); ~ConstantExpr() {} - virtual void destroyConstant() { destroyConstantImpl(); } + virtual void destroyConstant(); public: // Static methods to construct a ConstantExpr of different kinds. @@ -358,7 +358,7 @@ public: static ConstantExpr *get(unsigned opCode, Constant *C1, Constant *C2, const Type *Ty); static ConstantExpr *get(unsigned opCode, Constant* C, - const std::vector& idxList, const Type *Ty); + const std::vector& idxList, const Type *Ty); // isNullValue - Return true if this is the value that would be returned by // getNullValue.