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
This commit is contained in:
Gabor Greif 2009-08-31 20:54:23 +00:00
parent a3251db21a
commit b97cb9cbe1

View File

@ -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*(); }