[llvm] r255940 - BranchProbabilityTest.cpp: Suppress warnings. [-Wsign-compare]
NAKAMURA Takumi via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 17 16:18:19 PST 2015
Author: chapuni
Date: Thu Dec 17 18:18:18 2015
New Revision: 255940
URL: http://llvm.org/viewvc/llvm-project?rev=255940&view=rev
Log:
BranchProbabilityTest.cpp: Suppress warnings. [-Wsign-compare]
Modified:
llvm/trunk/unittests/Support/BranchProbabilityTest.cpp
Modified: llvm/trunk/unittests/Support/BranchProbabilityTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/Support/BranchProbabilityTest.cpp?rev=255940&r1=255939&r2=255940&view=diff
==============================================================================
--- llvm/trunk/unittests/Support/BranchProbabilityTest.cpp (original)
+++ llvm/trunk/unittests/Support/BranchProbabilityTest.cpp Thu Dec 17 18:18:18 2015
@@ -326,14 +326,14 @@ TEST(BranchProbabilityTest, NormalizePro
{
SmallVector<BranchProbability, 2> Probs{{0, 1}, UnknownProb};
BranchProbability::normalizeProbabilities(Probs.begin(), Probs.end());
- EXPECT_EQ(0, Probs[0].getNumerator());
+ EXPECT_EQ(0U, Probs[0].getNumerator());
EXPECT_EQ(BranchProbability::getDenominator(), Probs[1].getNumerator());
}
{
SmallVector<BranchProbability, 2> Probs{{1, 1}, UnknownProb};
BranchProbability::normalizeProbabilities(Probs.begin(), Probs.end());
EXPECT_EQ(BranchProbability::getDenominator(), Probs[0].getNumerator());
- EXPECT_EQ(0, Probs[1].getNumerator());
+ EXPECT_EQ(0U, Probs[1].getNumerator());
}
{
SmallVector<BranchProbability, 2> Probs{{1, 2}, UnknownProb};
@@ -351,7 +351,7 @@ TEST(BranchProbabilityTest, NormalizePro
Probs[1].getNumerator());
EXPECT_EQ(BranchProbability::getDenominator() / 3 + 1,
Probs[2].getNumerator());
- EXPECT_EQ(0, Probs[3].getNumerator());
+ EXPECT_EQ(0U, Probs[3].getNumerator());
}
}
More information about the llvm-commits
mailing list