Fix -Wunused-lambda-capture warning. NFCI.

llvm-svn: 362822
This commit is contained in:
Simon Pilgrim 2019-06-07 18:20:09 +00:00
parent 44282a60c9
commit 1a6ce24ee1
1 changed files with 1 additions and 1 deletions

View 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)