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