[llvm] r257157 - InstrProfTest.cpp: Fix a warning. [-Wsign-compare]
NAKAMURA Takumi via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 7 23:58:20 PST 2016
Author: chapuni
Date: Fri Jan 8 01:58:20 2016
New Revision: 257157
URL: http://llvm.org/viewvc/llvm-project?rev=257157&view=rev
Log:
InstrProfTest.cpp: Fix a warning. [-Wsign-compare]
Modified:
llvm/trunk/unittests/ProfileData/InstrProfTest.cpp
Modified: llvm/trunk/unittests/ProfileData/InstrProfTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/ProfileData/InstrProfTest.cpp?rev=257157&r1=257156&r2=257157&view=diff
==============================================================================
--- llvm/trunk/unittests/ProfileData/InstrProfTest.cpp (original)
+++ llvm/trunk/unittests/ProfileData/InstrProfTest.cpp Fri Jan 8 01:58:20 2016
@@ -476,7 +476,7 @@ TEST_F(InstrProfTest, get_icall_data_mer
R.get().getValueForSite(IPVK_IndirectCallTarget, 0));
ASSERT_EQ(2U, R.get().getNumValueSites(IPVK_IndirectCallTarget));
ASSERT_EQ(255U, R.get().getNumValueDataForSite(IPVK_IndirectCallTarget, 0));
- for (int I = 0; I < 255; I++) {
+ for (unsigned I = 0; I < 255; I++) {
ASSERT_EQ(VD[I].Value, 509 - I);
ASSERT_EQ(VD[I].Count, 1509 - I);
}
More information about the llvm-commits
mailing list