[llvm-commits] [llvm] r68158 - /llvm/trunk/include/llvm/Support/ValueHandle.h
Chris Lattner
sabre at nondot.org
Tue Mar 31 16:09:54 PDT 2009
Author: lattner
Date: Tue Mar 31 18:09:51 2009
New Revision: 68158
URL: http://llvm.org/viewvc/llvm-project?rev=68158&view=rev
Log:
add a converting operator
Modified:
llvm/trunk/include/llvm/Support/ValueHandle.h
Modified: llvm/trunk/include/llvm/Support/ValueHandle.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/ValueHandle.h?rev=68158&r1=68157&r2=68158&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/ValueHandle.h (original)
+++ llvm/trunk/include/llvm/Support/ValueHandle.h Tue Mar 31 18:09:51 2009
@@ -123,6 +123,9 @@
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
More information about the llvm-commits
mailing list