add missing *
authorChris Lattner <sabre@nondot.org>
Thu, 2 Apr 2009 23:53:03 +0000 (23:53 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 2 Apr 2009 23:53:03 +0000 (23:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68350 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/ValueHandle.h

index 3cf964d01163b80b1ed22ce947bad70a0b2258d5..27714646f70a54eaeff85f1063442c9554862c6d 100644 (file)
@@ -141,7 +141,7 @@ public:
 /// 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 @@ public:
   }
 
   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.