Fix -Wunused-lambda-capture warning. NFCI.
llvm-svn: 362822
This commit is contained in:
parent
44282a60c9
commit
1a6ce24ee1
|
@ -508,7 +508,7 @@ static Error replaceAndRemoveSections(const CopyConfig &Config, Object &Obj) {
|
|||
};
|
||||
|
||||
if (Config.ExtractPartition || Config.ExtractMainPartition) {
|
||||
RemovePred = [RemovePred, &Obj](const SectionBase &Sec) {
|
||||
RemovePred = [RemovePred](const SectionBase &Sec) {
|
||||
if (RemovePred(Sec))
|
||||
return true;
|
||||
if (Sec.Type == SHT_LLVM_PART_EHDR || Sec.Type == SHT_LLVM_PART_PHDR)
|
||||
|
|
Loading…
Reference in New Issue