[llvm] [ELFObject] Added dbgs() statement in removeSections() (PR #124692)
James Henderson via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 19 02:57:11 PST 2025
================
@@ -766,8 +766,15 @@ Error SymbolTableSection::removeSymbols(
function_ref<bool(const Symbol &)> ToRemove) {
Symbols.erase(
std::remove_if(std::begin(Symbols) + 1, std::end(Symbols),
- [ToRemove](const SymPtr &Sym) { return ToRemove(*Sym); }),
- std::end(Symbols));
+ [&](const SymPtr &Sym) {
+ if (ToRemove(*Sym)) {
----------------
jh7370 wrote:
There's no need for the braces here (see other comment about coding standards).
https://github.com/llvm/llvm-project/pull/124692
More information about the llvm-commits
mailing list