From: Simon Pilgrim Date: Fri, 7 Jun 2019 18:20:09 +0000 (+0000) Subject: Fix -Wunused-lambda-capture warning. NFCI. X-Git-Tag: android-x86-9.0-r1~2271 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=ff1332ee8e42c6a4e9f303bdae7e9524d131abab;p=android-x86%2Fexternal-llvm.git Fix -Wunused-lambda-capture warning. NFCI. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@362822 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/llvm-objcopy/ELF/ELFObjcopy.cpp b/tools/llvm-objcopy/ELF/ELFObjcopy.cpp index adc7a9587ff..f30ac2024a2 100644 --- a/tools/llvm-objcopy/ELF/ELFObjcopy.cpp +++ b/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)