aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-04-14 22:23:05 +0000
committerDan Gohman <gohman@apple.com>2010-04-14 22:23:05 +0000
commit5f82657f997e253ab5de6e09cf199a99497f54d2 (patch)
tree8082e7d1377288338c9f7ea9be690b036bc4b343
parent677eb641249e83bdf17d15a52360f9ca1e8e7755 (diff)
downloadexternal_llvm-5f82657f997e253ab5de6e09cf199a99497f54d2.zip
external_llvm-5f82657f997e253ab5de6e09cf199a99497f54d2.tar.gz
external_llvm-5f82657f997e253ab5de6e09cf199a99497f54d2.tar.bz2
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
-rw-r--r--include/llvm/IntrinsicInst.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/llvm/IntrinsicInst.h b/include/llvm/IntrinsicInst.h
index bd8a8c4..5b0e90f 100644
--- a/include/llvm/IntrinsicInst.h
+++ b/include/llvm/IntrinsicInst.h
@@ -105,8 +105,7 @@ namespace llvm {
return cast<ConstantInt>(
const_cast<Value*>(getOperand(2)))->getZExtValue();
}
- const MDNode *getVariable() const { return cast<MDNode>(getOperand(3)); }
- MDNode *getVariable() { return cast<MDNode>(getOperand(3)); }
+ MDNode *getVariable() const { return cast<MDNode>(getOperand(3)); }
// Methods for support type inquiry through isa, cast, and dyn_cast:
static inline bool classof(const DbgValueInst *) { return true; }