[llvm-commits] CVS: llvm/include/llvm/Support/CFG.h
Chris Lattner
lattner at cs.uiuc.edu
Mon Oct 7 11:54:01 PDT 2002
Changes in directory llvm/include/llvm/Support:
CFG.h updated: 1.5 -> 1.6
---
Log message:
Implement operator= for SuccIterators
---
Diffs of the changes:
Index: llvm/include/llvm/Support/CFG.h
diff -u llvm/include/llvm/Support/CFG.h:1.5 llvm/include/llvm/Support/CFG.h:1.6
--- llvm/include/llvm/Support/CFG.h:1.5 Wed Jul 24 17:08:45 2002
+++ llvm/include/llvm/Support/CFG.h Mon Oct 7 11:53:22 2002
@@ -100,6 +100,11 @@
: Term(T), idx(Term->getNumSuccessors()) {
assert(T && "getTerminator returned null!");
}
+
+ inline const _Self &operator=(const _Self &I) {
+ assert(Term == I.Term &&"Cannot assign iterators to two different blocks!");
+ idx = I.idx;
+ }
inline bool operator==(const _Self& x) const { return idx == x.idx; }
inline bool operator!=(const _Self& x) const { return !operator==(x); }
More information about the llvm-commits
mailing list