From 169b2f191df05b09b63f895af3c0f0d45e145031 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 31 Mar 2009 23:09:51 +0000 Subject: [PATCH] add a converting operator llvm-svn: 68158 --- llvm/include/llvm/Support/ValueHandle.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/llvm/include/llvm/Support/ValueHandle.h b/llvm/include/llvm/Support/ValueHandle.h index 0494b27019cf..3cf964d01163 100644 --- a/llvm/include/llvm/Support/ValueHandle.h +++ b/llvm/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