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:
parent
9abe698dc8
commit
6c4e8bd385
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user