diff --git a/lld/wasm/InputChunks.cpp b/lld/wasm/InputChunks.cpp index ffab83e63639..855589353e4f 100644 --- a/lld/wasm/InputChunks.cpp +++ b/lld/wasm/InputChunks.cpp @@ -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.