mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
CFG::SuccessorIterator: Remove explicit copy assignment, as the default is fine
There's no reason to disallow assigning an iterator from one range to an iterator that previously iterated over a disjoint range. This then follows the Rule of Zero, allowing implicit copy construction to be used without hitting the case that's deprecated in C++11. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231142 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c853fd1db5
commit
017ba3988f
@ -167,12 +167,6 @@ public:
|
||||
idx = 0;
|
||||
}
|
||||
|
||||
inline const Self &operator=(const Self &I) {
|
||||
assert(Term == I.Term &&"Cannot assign iterators to two different blocks!");
|
||||
idx = I.idx;
|
||||
return *this;
|
||||
}
|
||||
|
||||
/// getSuccessorIndex - This is used to interface between code that wants to
|
||||
/// operate on terminator instructions directly.
|
||||
unsigned getSuccessorIndex() const { return idx; }
|
||||
|
Loading…
Reference in New Issue
Block a user