From: Chris Lattner Date: Thu, 12 Feb 2009 17:14:49 +0000 (+0000) Subject: Add operator->, patch by Ben Laurie! X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=5b22efa61446797039dd19fc1e9be83676463f99;p=oota-llvm.git Add operator->, patch by Ben Laurie! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64378 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/ADT/ImmutableSet.h b/include/llvm/ADT/ImmutableSet.h index 5d2969f45ae..2db659af7d5 100644 --- a/include/llvm/ADT/ImmutableSet.h +++ b/include/llvm/ADT/ImmutableSet.h @@ -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); }