[PECOFF] Remove an assertion that's too heavy.
authorRui Ueyama <ruiu@google.com>
Fri, 2 Aug 2013 19:10:29 +0000 (19:10 +0000)
committerRui Ueyama <ruiu@google.com>
Fri, 2 Aug 2013 19:10:29 +0000 (19:10 +0000)
llvm-svn: 187665

lld/lib/ReaderWriter/PECOFF/ReaderCOFF.cpp

index 9a350b2..4984f35 100644 (file)
@@ -317,12 +317,6 @@ private:
   COFFDefinedFileAtom *
   findAtomAt(uint32_t targetOffset,
              const vector<COFFDefinedFileAtom *> &atoms) const {
-    assert(std::is_sorted(atoms.begin(), atoms.end(),
-                          [](const COFFDefinedFileAtom * a,
-                             const COFFDefinedFileAtom * b) -> bool {
-                            return a->originalOffset() < b->originalOffset();
-                          }));
-
     for (COFFDefinedFileAtom *atom : atoms)
       if (targetOffset < atom->originalOffset() + atom->size())
         return atom;