Add operator->, patch by Ben Laurie!
authorChris Lattner <sabre@nondot.org>
Thu, 12 Feb 2009 17:14:49 +0000 (17:14 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 12 Feb 2009 17:14:49 +0000 (17:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64378 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/ImmutableSet.h

index 5d2969f45ae657f2ebb3c42cde2d3ef5ac94b316..2db659af7d5b1c4b8308b98dffa2399559a78abb 100644 (file)
@@ -1029,6 +1029,7 @@ public:
     inline iterator  operator--(int) { iterator tmp(*this); --itr; return tmp; }
     inline bool operator==(const iterator& RHS) const { return RHS.itr == itr; }
     inline bool operator!=(const iterator& RHS) const { return RHS.itr != itr; }
+    inline value_type *operator->() const { return &(operator*()); }
   };
 
   iterator begin() const { return iterator(Root); }