Minor code cleanups. NFC.

llvm-svn: 260875
This commit is contained in:
Junmo Park 2016-02-15 04:30:37 +00:00
parent 404d08f470
commit b2a215ef02
1 changed files with 1 additions and 1 deletions

View File

@ -203,7 +203,7 @@ void BranchProbability::normalizeProbabilities(ProbabilityIter Begin,
if (Sum <= BranchProbability::getDenominator())
return;
}
if (Sum == 0) {
BranchProbability BP(1, std::distance(Begin, End));
std::fill(Begin, End, BP);