forked from OSchip/llvm-project
Remove explicit RNSuccIterator copy assignment in favor of implicit default
Asserting that the source and destination iterators are from the same region is unnecessary - there's no reason to disallow reassignment from any regions, so long as they aren't compared. llvm-svn: 231224
This commit is contained in:
parent
2d5f42928c
commit
a985e1ebda
|
@ -145,16 +145,6 @@ public:
|
|||
++*this;
|
||||
return tmp;
|
||||
}
|
||||
|
||||
inline const Self &operator=(const Self &I) {
|
||||
if (this != &I) {
|
||||
assert(getNode()->getParent() == I.getNode()->getParent()
|
||||
&& "Cannot assign iterators of two different regions!");
|
||||
Node = I.Node;
|
||||
BItor = I.BItor;
|
||||
}
|
||||
return *this;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
@ -240,16 +230,6 @@ public:
|
|||
++*this;
|
||||
return tmp;
|
||||
}
|
||||
|
||||
inline const Self &operator=(const Self &I) {
|
||||
if (this != &I) {
|
||||
assert(Node->getParent() == I.Node->getParent()
|
||||
&& "Cannot assign iterators to two different regions!");
|
||||
Node = I.Node;
|
||||
Itor = I.Itor;
|
||||
}
|
||||
return *this;
|
||||
}
|
||||
};
|
||||
|
||||
template<class NodeType, class BlockT, class RegionT>
|
||||
|
|
Loading…
Reference in New Issue