We never compare iterators from two archives. Assert that.

llvm-svn: 185934
This commit is contained in:
Rafael Espindola 2013-07-09 12:30:10 +00:00
parent 97ee9de652
commit 86fbebd3b7
1 changed files with 2 additions and 1 deletions

View File

@ -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 {