From: Diego Novillo Date: Fri, 16 Oct 2015 13:54:52 +0000 (+0000) Subject: Sample Profiling - Remove useless asserts. NFC. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=1965754e592c9759cb266a44a3e887d4435385fe;p=oota-llvm.git Sample Profiling - Remove useless asserts. NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@250513 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/ProfileData/SampleProf.h b/include/llvm/ProfileData/SampleProf.h index b36b328d425..e46407bde2c 100644 --- a/include/llvm/ProfileData/SampleProf.h +++ b/include/llvm/ProfileData/SampleProf.h @@ -215,12 +215,10 @@ public: void addHeadSamples(uint64_t Num) { TotalHeadSamples += Num; } void addBodySamples(uint32_t LineOffset, uint32_t Discriminator, uint64_t Num) { - assert(LineOffset >= 0); BodySamples[LineLocation(LineOffset, Discriminator)].addSamples(Num); } void addCalledTargetSamples(uint32_t LineOffset, uint32_t Discriminator, std::string FName, uint64_t Num) { - assert(LineOffset >= 0); BodySamples[LineLocation(LineOffset, Discriminator)].addCalledTarget(FName, Num); }