1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

[Mem2Reg] Use llvm::count instead of std::count (NFC)

This commit is contained in:
Kazu Hirata 2020-11-07 20:18:47 -08:00
parent 9abe698dc8
commit 6c4e8bd385

View File

@ -907,7 +907,7 @@ NextIteration:
// operands so far. Remember this count.
unsigned NewPHINumOperands = APN->getNumOperands();
unsigned NumEdges = std::count(succ_begin(Pred), succ_end(Pred), BB);
unsigned NumEdges = llvm::count(successors(Pred), BB);
assert(NumEdges && "Must be at least one edge from Pred to BB!");
// Add entries for all the phis.