summaryrefslogtreecommitdiff
path: root/include/llvm/Support/ValueHandle.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-03-31 23:09:51 +0000
committerChris Lattner <sabre@nondot.org>2009-03-31 23:09:51 +0000
commitb160f5d36d9d0ed0305e98096f4df430d07ee44f (patch)
tree8c23f3e76f4669814909f03f21e2df36f3fa4c8e /include/llvm/Support/ValueHandle.h
parent46e7740a4433383e6e5561f089a091c22125bd07 (diff)
downloadllvm-b160f5d36d9d0ed0305e98096f4df430d07ee44f.tar.gz
llvm-b160f5d36d9d0ed0305e98096f4df430d07ee44f.tar.bz2
llvm-b160f5d36d9d0ed0305e98096f4df430d07ee44f.tar.xz
add a converting operator
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68158 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/ValueHandle.h')
-rw-r--r--include/llvm/Support/ValueHandle.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/Support/ValueHandle.h b/include/llvm/Support/ValueHandle.h
index 0494b27019..3cf964d011 100644
--- a/include/llvm/Support/ValueHandle.h
+++ b/include/llvm/Support/ValueHandle.h
@@ -123,6 +123,9 @@ public:
WeakVH(const WeakVH &RHS)
: ValueHandleBase(Weak, RHS) {}
+ operator Value*() const {
+ return getValPtr();
+ }
};
/// AssertingVH - This is a Value Handle that points to a value and asserts out