diff --git a/include/llvm/IntrinsicInst.h b/include/llvm/IntrinsicInst.h index bd8a8c4e9d3..5b0e90f5cc0 100644 --- a/include/llvm/IntrinsicInst.h +++ b/include/llvm/IntrinsicInst.h @@ -105,8 +105,7 @@ namespace llvm { return cast( const_cast(getOperand(2)))->getZExtValue(); } - const MDNode *getVariable() const { return cast(getOperand(3)); } - MDNode *getVariable() { return cast(getOperand(3)); } + MDNode *getVariable() const { return cast(getOperand(3)); } // Methods for support type inquiry through isa, cast, and dyn_cast: static inline bool classof(const DbgValueInst *) { return true; }