Skip to content

Commit 203b5d5

Browse files
committed
[rust] Work around ICE in GCC 5.4
1 parent 155467e commit 203b5d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lld/ELF/SyntheticSections.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1662,8 +1662,8 @@ void RelocationBaseSection::partitionRels() {
16621662
if (!combreloc)
16631663
return;
16641664
const RelType relativeRel = target->relativeRel;
1665-
numRelativeRelocs =
1666-
llvm::partition(relocs, [=](auto &r) { return r.type == relativeRel; }) -
1665+
numRelativeRelocs = llvm::partition(
1666+
relocs, [=](const DynamicReloc &r) { return r.type == relativeRel; }) -
16671667
relocs.begin();
16681668
}
16691669

0 commit comments

Comments
 (0)