From 8b2c25d321f877161f85218479e2d1317d770e18 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Thu, 10 Feb 2022 09:59:11 +0100 Subject: [PATCH] [rust] Work around ICE in GCC 5.4 --- lld/ELF/SyntheticSections.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lld/ELF/SyntheticSections.cpp b/lld/ELF/SyntheticSections.cpp index 986c1308cbaf6bd..dac41da8b26ac1b 100644 --- a/lld/ELF/SyntheticSections.cpp +++ b/lld/ELF/SyntheticSections.cpp @@ -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(); }