Displaying 2 results from an estimated 2 matches for "member_iterator".
2007 Jun 15
1
[LLVMdev] EquivalenceClasses: findValue vs. findLeader
...of the equivalence class is empty.
Strangly, when I just iterate through the EquivalenceClasses object like this:
for(iterator i = equiv.begin(),
iend = equiv.end();
i != iend;
++i) {
DOUT << "### New set:\n";
for(member_iterator j =
equiv.member_begin(i),
jend = equiv.member_end(i);
j != jend;
++j) {
dump_member(*j);
DOUT << "\n";
}
}
I get something like this:
### New set:
### New set:
#...
2010 Jul 12
1
[LLVMdev] [patch] EquivalenceClasses.h
...LeaderValue - Return the leader for the specified
value that is
/// in the set. If the member is not in the set, it is inserted, then
/// returned.
- const ElemTy &getOrInsertLeaderValue(const ElemTy &V) const {
+ const ElemTy &getOrInsertLeaderValue(const ElemTy &V) {
member_iterator MI = findLeader(insert(V));
assert(MI != member_end() && "Value is not in the set!");
return *MI;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ec.patch
Type: application/octet-stream
Size: 676 bytes
Desc: not available
URL: <http...