]> granicus.if.org Git - clang/commitdiff
Remove an assertion that no longer holds. <rdar://problem/16135814>
authorBob Wilson <bob.wilson@apple.com>
Thu, 27 Feb 2014 21:59:17 +0000 (21:59 +0000)
committerBob Wilson <bob.wilson@apple.com>
Thu, 27 Feb 2014 21:59:17 +0000 (21:59 +0000)
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

index 083e5466c661cc2e4a9dde5a540c63dd05d54a60..5f7da4c79a0146bd60d6e2a9e57a26fb3cfb5e05 100644 (file)
@@ -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;
   }