Skip to content

Commit

Permalink
[rust] Work around ICE in GCC 5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
nikic committed Feb 10, 2022
1 parent 6e8f9ab commit 8b2c25d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lld/ELF/SyntheticSections.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1651,8 +1651,8 @@ void RelocationBaseSection::partitionRels() {
if (!combreloc)
return;
const RelType relativeRel = target->relativeRel;
numRelativeRelocs =
llvm::partition(relocs, [=](auto &r) { return r.type == relativeRel; }) -
numRelativeRelocs = llvm::partition(
relocs, [=](const DynamicReloc &r) { return r.type == relativeRel; }) -
relocs.begin();
}

Expand Down

0 comments on commit 8b2c25d

Please sign in to comment.