projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a14aa1
)
[PECOFF] Remove an assertion that's too heavy.
author
Rui Ueyama
<ruiu@google.com>
Fri, 2 Aug 2013 19:10:29 +0000
(19:10 +0000)
committer
Rui Ueyama
<ruiu@google.com>
Fri, 2 Aug 2013 19:10:29 +0000
(19:10 +0000)
llvm-svn: 187665
lld/lib/ReaderWriter/PECOFF/ReaderCOFF.cpp
patch
|
blob
|
history
diff --git
a/lld/lib/ReaderWriter/PECOFF/ReaderCOFF.cpp
b/lld/lib/ReaderWriter/PECOFF/ReaderCOFF.cpp
index
9a350b2
..
4984f35
100644
(file)
--- a/
lld/lib/ReaderWriter/PECOFF/ReaderCOFF.cpp
+++ b/
lld/lib/ReaderWriter/PECOFF/ReaderCOFF.cpp
@@
-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;