summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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