From 6fa8a99101045f5772d7de22d12ec7f30e887603 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 7 Oct 2002 16:53:22 +0000 Subject: [PATCH] Implement operator= for SuccIterators llvm-svn: 4055 --- llvm/include/llvm/Support/CFG.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/llvm/include/llvm/Support/CFG.h b/llvm/include/llvm/Support/CFG.h index e38295ce8b78..0e48ef506ad9 100644 --- a/llvm/include/llvm/Support/CFG.h +++ b/llvm/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); }