Skip to content

Commit

Permalink
Fix -Wunused-lambda-capture warning. NFCI.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@362822 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
RKSimon committed Jun 7, 2019
1 parent f409c45 commit ff1332e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/llvm-objcopy/ELF/ELFObjcopy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ff1332e

Please sign in to comment.