aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-02-12 17:14:49 +0000
committerChris Lattner <sabre@nondot.org>2009-02-12 17:14:49 +0000
commit5b22efa61446797039dd19fc1e9be83676463f99 (patch)
treec714406d8b07945e7900ce10dd39e474d116404a /include
parent327e98fae1963210a557e629486cb621059a3563 (diff)
downloadexternal_llvm-5b22efa61446797039dd19fc1e9be83676463f99.tar.gz
external_llvm-5b22efa61446797039dd19fc1e9be83676463f99.tar.bz2
external_llvm-5b22efa61446797039dd19fc1e9be83676463f99.zip
Add operator->, patch by Ben Laurie!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64378 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/ADT/ImmutableSet.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/llvm/ADT/ImmutableSet.h b/include/llvm/ADT/ImmutableSet.h
index 5d2969f45a..2db659af7d 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); }