forked from OSchip/llvm-project
Revert r298815: Do not use assert to report broken input files.
This reverts commit because this really shouldn't happen unless there's a bug in LLD. llvm-svn: 299021
This commit is contained in:
parent
d53048c479
commit
aa693468c5
|
@ -686,10 +686,8 @@ public:
|
||||||
if (I == Size)
|
if (I == Size)
|
||||||
return Off;
|
return Off;
|
||||||
|
|
||||||
if (Off < P[I].InputOff) {
|
// P must be contiguous, so there must be no holes in between.
|
||||||
error("relocation not in any piece");
|
assert(P[I].InputOff <= Off && "Relocation not in any piece");
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Offset -1 means that the piece is dead (i.e. garbage collected).
|
// Offset -1 means that the piece is dead (i.e. garbage collected).
|
||||||
if (P[I].OutputOff == -1)
|
if (P[I].OutputOff == -1)
|
||||||
|
|
Loading…
Reference in New Issue