projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
327e98f
)
Add operator->, patch by Ben Laurie!
author
Chris Lattner
<sabre@nondot.org>
Thu, 12 Feb 2009 17:14:49 +0000
(17:14 +0000)
committer
Chris 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
patch
|
blob
|
history
diff --git
a/include/llvm/ADT/ImmutableSet.h
b/include/llvm/ADT/ImmutableSet.h
index 5d2969f45ae657f2ebb3c42cde2d3ef5ac94b316..2db659af7d5b1c4b8308b98dffa2399559a78abb 100644
(file)
--- 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); }