From 58b4d1883908d16c2e49fbabccb285f4550e1e65 Mon Sep 17 00:00:00 2001 From: Bob Wilson Date: Thu, 27 Feb 2014 21:59:17 +0000 Subject: [PATCH] Remove an assertion that no longer holds. In r201528, I changed the PGO instrumentation counter for a "do" loop to not include the fall-through count. That fall-through count is included later, b it means that this assertion may fail for "do" loops. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@202437 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CodeGenPGO.h | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/CodeGen/CodeGenPGO.h b/lib/CodeGen/CodeGenPGO.h index 083e5466c6..5f7da4c79a 100644 --- a/lib/CodeGen/CodeGenPGO.h +++ b/lib/CodeGen/CodeGenPGO.h @@ -186,7 +186,6 @@ public: /// within the region. The adjusted count, then, is the value of the counter /// at the end of the region. uint64_t getAdjustedCount() const { - assert((Adjust > 0 || (uint64_t)(-Adjust) <= Count) && "Negative count"); return Count + Adjust; } -- 2.50.1