[rust] Work around ICE in GCC 5.4
This commit is contained in:
parent
e746ae8048
commit
783da8c589
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue