forked from OSchip/llvm-project
We never compare iterators from two archives. Assert that.
llvm-svn: 185934
This commit is contained in:
parent
97ee9de652
commit
86fbebd3b7
|
@ -54,7 +54,8 @@ public:
|
|||
Child(const Archive *Parent, const char *Start);
|
||||
|
||||
bool operator ==(const Child &other) const {
|
||||
return (Parent == other.Parent) && (Data.begin() == other.Data.begin());
|
||||
assert(Parent == other.Parent);
|
||||
return Data.begin() == other.Data.begin();
|
||||
}
|
||||
|
||||
bool operator <(const Child &other) const {
|
||||
|
|
Loading…
Reference in New Issue