From: Simon Pilgrim Date: Fri, 7 Jun 2019 18:20:09 +0000 (+0000) Subject: Fix -Wunused-lambda-capture warning. NFCI. X-Git-Tag: llvmorg-10-init~3510 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1a6ce24ee164a41a9925314c38b6e15f8b5559d2;p=platform%2Fupstream%2Fllvm.git Fix -Wunused-lambda-capture warning. NFCI. llvm-svn: 362822 --- diff --git a/llvm/tools/llvm-objcopy/ELF/ELFObjcopy.cpp b/llvm/tools/llvm-objcopy/ELF/ELFObjcopy.cpp index adc7a95..f30ac20 100644 --- a/llvm/tools/llvm-objcopy/ELF/ELFObjcopy.cpp +++ b/llvm/tools/llvm-objcopy/ELF/ELFObjcopy.cpp @@ -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)