[rust] Work around ICE in GCC 5.4

This commit is contained in:
Nikita Popov 2022-02-10 09:59:11 +01:00
parent e746ae8048
commit 783da8c589

View file

@ -1662,8 +1662,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();
}