Skip to content

Commit 8b2c25d

Browse files
committed
[rust] Work around ICE in GCC 5.4
1 parent 6e8f9ab commit 8b2c25d

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
@@ -1651,8 +1651,8 @@ void RelocationBaseSection::partitionRels() {
16511651
if (!combreloc)
16521652
return;
16531653
const RelType relativeRel = target->relativeRel;
1654-
numRelativeRelocs =
1655-
llvm::partition(relocs, [=](auto &r) { return r.type == relativeRel; }) -
1654+
numRelativeRelocs = llvm::partition(
1655+
relocs, [=](const DynamicReloc &r) { return r.type == relativeRel; }) -
16561656
relocs.begin();
16571657
}
16581658

0 commit comments

Comments
 (0)