Skip to content

Commit 9f4efcd

Browse files
nikiccuviper
authored andcommitted
[rust] Work around ICE in GCC 5.4
1 parent 0e3cb00 commit 9f4efcd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lld/ELF/SyntheticSections.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1652,8 +1652,8 @@ void RelocationBaseSection::partitionRels() {
16521652
if (!combreloc)
16531653
return;
16541654
const RelType relativeRel = target->relativeRel;
1655-
numRelativeRelocs =
1656-
llvm::partition(relocs, [=](auto &r) { return r.type == relativeRel; }) -
1655+
numRelativeRelocs = llvm::partition(
1656+
relocs, [=](const DynamicReloc &r) { return r.type == relativeRel; }) -
16571657
relocs.begin();
16581658
}
16591659

0 commit comments

Comments
 (0)