From: Dan Gohman Date: Wed, 14 Apr 2010 22:23:05 +0000 (+0000) Subject: Remove a const here. This makes this function consistent with all the X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=75d4ec3caeb6bf6e27b06b3071fb4577d4c7030d;p=oota-llvm.git Remove a const here. This makes this function consistent with all the other getOperand wrappers, and it makes it easier to use with DebugInfo code, which isn't currently prepared to see const MDNode *. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101299 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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; }