Skip to content

Commit 4dbc755

Browse files
[lld] Use llvm::count_if (NFC) (#141519)
1 parent 4bf67cd commit 4dbc755

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lld/wasm/InputChunks.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,9 @@ static bool relocIsLive(const WasmRelocation &rel, ObjFile *file) {
174174
}
175175

176176
size_t InputChunk::getNumLiveRelocations() const {
177-
return std::count_if(
178-
relocations.begin(), relocations.end(),
179-
[this](const WasmRelocation &rel) { return relocIsLive(rel, file); });
177+
return llvm::count_if(relocations, [this](const WasmRelocation &rel) {
178+
return relocIsLive(rel, file);
179+
});
180180
}
181181

182182
// Copy relocation entries to a given output stream.

0 commit comments

Comments
 (0)