[llvm-objcopy] Don't copy Config when processing --keep

llvm-svn: 346717
This commit is contained in:
Fangrui Song 2018-11-12 23:46:22 +00:00
parent 35b1c2d19d
commit e9f34b0d52
1 changed files with 1 additions and 1 deletions

View File

@ -386,7 +386,7 @@ static void handleArgs(const CopyConfig &Config, Object &Obj,
}
if (!Config.Keep.empty()) {
RemovePred = [Config, RemovePred](const SectionBase &Sec) {
RemovePred = [&Config, RemovePred](const SectionBase &Sec) {
// Explicitly keep these sections regardless of previous removes.
if (is_contained(Config.Keep, Sec.Name))
return false;