projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cacfb31
)
Implement operator= for SuccIterators
author
Chris Lattner
<sabre@nondot.org>
Mon, 7 Oct 2002 16:53:22 +0000
(16:53 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Mon, 7 Oct 2002 16:53:22 +0000
(16:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4055
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/Support/CFG.h
patch
|
blob
|
history
diff --git
a/include/llvm/Support/CFG.h
b/include/llvm/Support/CFG.h
index e38295ce8b7808152582ef70a105072a032b2f40..0e48ef506ad9aa31a5079fe5d5ab6c4949843652 100644
(file)
--- a/
include/llvm/Support/CFG.h
+++ b/
include/llvm/Support/CFG.h
@@
-100,6
+100,11
@@
public:
: 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); }