From 1a6ce24ee164a41a9925314c38b6e15f8b5559d2 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Fri, 7 Jun 2019 18:20:09 +0000 Subject: [PATCH] Fix -Wunused-lambda-capture warning. NFCI. llvm-svn: 362822 --- llvm/tools/llvm-objcopy/ELF/ELFObjcopy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.7.4