[lld] Use llvm::count_if (NFC) (#141519)

This commit is contained in:
Kazu Hirata
2025-05-28 11:32:58 -07:00
committed by GitHub
parent 4bf67cdf02
commit 4dbc75567d

View File

@@ -174,9 +174,9 @@ static bool relocIsLive(const WasmRelocation &rel, ObjFile *file) {
}
size_t InputChunk::getNumLiveRelocations() const {
return std::count_if(
relocations.begin(), relocations.end(),
[this](const WasmRelocation &rel) { return relocIsLive(rel, file); });
return llvm::count_if(relocations, [this](const WasmRelocation &rel) {
return relocIsLive(rel, file);
});
}
// Copy relocation entries to a given output stream.