Skip to content

Commit

Permalink
Minor code cleanups. NFC.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@260875 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
junmopark-sec committed Feb 15, 2016
1 parent 3c5ec72 commit c7b710e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/llvm/Support/BranchProbability.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c7b710e

Please sign in to comment.