From: Chris Lattner Date: Tue, 31 Mar 2009 23:09:51 +0000 (+0000) Subject: add a converting operator X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=b160f5d36d9d0ed0305e98096f4df430d07ee44f;p=oota-llvm.git add a converting operator git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68158 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Support/ValueHandle.h b/include/llvm/Support/ValueHandle.h index 0494b27019c..3cf964d0116 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