From 1965754e592c9759cb266a44a3e887d4435385fe Mon Sep 17 00:00:00 2001 From: Diego Novillo Date: Fri, 16 Oct 2015 13:54:52 +0000 Subject: [PATCH] Sample Profiling - Remove useless asserts. NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@250513 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/ProfileData/SampleProf.h | 2 -- 1 file changed, 2 deletions(-) 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); } -- 2.34.1