X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=blobdiff_plain;f=include%2Fllvm%2FProfileData%2FInstrProf.h;h=aa100a796f2d60e23b59b51e6215a54229f124f9;hp=384edddf85a956a70fa7413cf4e5d1eed86d4dbc;hb=d4cf58476e0af9e62fbf868221e5f59547c682df;hpb=d663426c2fcd19aac2cba06993cde8eed5579f6b diff --git a/include/llvm/ProfileData/InstrProf.h b/include/llvm/ProfileData/InstrProf.h index 384edddf85a..aa100a796f2 100644 --- a/include/llvm/ProfileData/InstrProf.h +++ b/include/llvm/ProfileData/InstrProf.h @@ -226,7 +226,7 @@ struct InstrProfValueSiteRecord { while (I != IE && I->Value < J->Value) ++I; if (I != IE && I->Value == J->Value) { - I->Count = SaturatingAdd(I->Count, J->Count); + I->Count += J->Count; ++I; continue; }