mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-28 14:10:41 +00:00
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:
parent
a3251db21a
commit
b97cb9cbe1
@ -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*(); }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user