llvm.org GIT mirror llvm / 5554a1d
Implement operator= for SuccIterators git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4055 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 17 years ago
1 changed file(s) with 5 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
9999 : Term(T), idx(Term->getNumSuccessors()) {
100100 assert(T && "getTerminator returned null!");
101101 }
102
103 inline const _Self &operator=(const _Self &I) {
104 assert(Term == I.Term &&"Cannot assign iterators to two different blocks!");
105 idx = I.idx;
106 }
102107
103108 inline bool operator==(const _Self& x) const { return idx == x.idx; }
104109 inline bool operator!=(const _Self& x) const { return !operator==(x); }