add a converting operator

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68158 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2009-03-31 23:09:51 +00:00
parent 46e7740a44
commit b160f5d36d

View File

@ -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