OSDN Git Service

Fix -Wunused-lambda-capture warning. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 7 Jun 2019 18:20:09 +0000 (18:20 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 7 Jun 2019 18:20:09 +0000 (18:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@362822 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvm-objcopy/ELF/ELFObjcopy.cpp

index adc7a95..f30ac20 100644 (file)
@@ -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)