From: NAKAMURA Takumi Date: Fri, 8 Jan 2016 07:58:20 +0000 (+0000) Subject: InstrProfTest.cpp: Fix a warning. [-Wsign-compare] X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=7203e500c0f3335e3ef1f72321689793ebd890f9;p=oota-llvm.git InstrProfTest.cpp: Fix a warning. [-Wsign-compare] git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@257157 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/unittests/ProfileData/InstrProfTest.cpp b/unittests/ProfileData/InstrProfTest.cpp index 2012e05e3b2..51f52f2a077 100644 --- a/unittests/ProfileData/InstrProfTest.cpp +++ b/unittests/ProfileData/InstrProfTest.cpp @@ -476,7 +476,7 @@ TEST_F(InstrProfTest, get_icall_data_merge_site_trunc) { 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); }