[llvm-commits] [llvm] r68350 - /llvm/trunk/include/llvm/Support/ValueHandle.h
Chris Lattner
sabre at nondot.org
Thu Apr 2 16:53:04 PDT 2009
Author: lattner
Date: Thu Apr 2 18:53:03 2009
New Revision: 68350
URL: http://llvm.org/viewvc/llvm-project?rev=68350&view=rev
Log:
add missing *
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=68350&r1=68349&r2=68350&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/ValueHandle.h (original)
+++ llvm/trunk/include/llvm/Support/ValueHandle.h Thu Apr 2 18:53:03 2009
@@ -141,7 +141,7 @@
/// operations. This means that RAUW's need to explicitly update the
/// AssertingVH's as it moves. This is required because in non-assert mode this
/// class turns into a trivial wrapper around a pointer.
-template <typename ValueTy = Value>
+template <typename ValueTy>
class AssertingVH
#ifndef NDEBUG
: public ValueHandleBase
@@ -185,7 +185,7 @@
}
ValueTy *operator->() const { return getValPtr(); }
- ValueTy &operator*() const { return getValPtr(); }
+ ValueTy &operator*() const { return *getValPtr(); }
// Duplicate these from the base class so that they work when assertions are
// off.
More information about the llvm-commits
mailing list