summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2019-06-07 18:20:09 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2019-06-07 18:20:09 +0000
commit1a6ce24ee164a41a9925314c38b6e15f8b5559d2 (patch)
tree5bf08099daa3344a037f9cc6a566f4288d84164a
parent44282a60c90fdded249d57d91b12c6c0907102ec (diff)
downloadbcm5719-llvm-1a6ce24ee164a41a9925314c38b6e15f8b5559d2.tar.gz
bcm5719-llvm-1a6ce24ee164a41a9925314c38b6e15f8b5559d2.zip
Fix -Wunused-lambda-capture warning. NFCI.
llvm-svn: 362822
-rw-r--r--llvm/tools/llvm-objcopy/ELF/ELFObjcopy.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-objcopy/ELF/ELFObjcopy.cpp b/llvm/tools/llvm-objcopy/ELF/ELFObjcopy.cpp
index adc7a9587ff..f30ac2024a2 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)
OpenPOWER on IntegriCloud