diff options
-rw-r--r-- | include/llvm/Support/ValueHandle.h | 3 |
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 |