diff options
author | Gabor Greif <ggreif@gmail.com> | 2009-08-31 20:54:23 +0000 |
---|---|---|
committer | Gabor Greif <ggreif@gmail.com> | 2009-08-31 20:54:23 +0000 |
commit | b97cb9cbe120c50cd78c4d2c0b86d4dd8047b055 (patch) | |
tree | 5a1533a85d14296fa93f914d0ddfd5c5fe1c707c | |
parent | a3251db21a474affaca945e3fc53f22d30d20f00 (diff) | |
download | external_llvm-b97cb9cbe120c50cd78c4d2c0b86d4dd8047b055.zip external_llvm-b97cb9cbe120c50cd78c4d2c0b86d4dd8047b055.tar.gz external_llvm-b97cb9cbe120c50cd78c4d2c0b86d4dd8047b055.tar.bz2 |
restore semantics of operator* (removing a FIXME I had to introduce in r80224)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80622 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/ADT/EquivalenceClasses.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/llvm/ADT/EquivalenceClasses.h b/include/llvm/ADT/EquivalenceClasses.h index bed99d3..ac9dd4d 100644 --- a/include/llvm/ADT/EquivalenceClasses.h +++ b/include/llvm/ADT/EquivalenceClasses.h @@ -234,8 +234,9 @@ public: } class member_iterator : public std::iterator<std::forward_iterator_tag, - ElemTy, ptrdiff_t> { - typedef std::iterator<std::forward_iterator_tag, ElemTy, ptrdiff_t> super; + const ElemTy, ptrdiff_t> { + typedef std::iterator<std::forward_iterator_tag, + const ElemTy, ptrdiff_t> super; const ECValue *Node; friend class EquivalenceClasses; public: @@ -249,7 +250,7 @@ public: reference operator*() const { assert(Node != 0 && "Dereferencing end()!"); - return const_cast<reference>(Node->getData()); // FIXME + return Node->getData(); } reference operator->() const { return operator*(); } |