summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenPGO.h
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2014-02-27 21:59:17 +0000
committerBob Wilson <bob.wilson@apple.com>2014-02-27 21:59:17 +0000
commit32dc99a48033d433eb97398b2bb91e09e55d3de7 (patch)
treee25a8c99bfa64b53ca9c454131cead8cce271106 /clang/lib/CodeGen/CodeGenPGO.h
parent08da97819a87df1ba5b5596bfaafbdcb7cf041e9 (diff)
downloadbcm5719-llvm-32dc99a48033d433eb97398b2bb91e09e55d3de7.tar.gz
bcm5719-llvm-32dc99a48033d433eb97398b2bb91e09e55d3de7.zip
Remove an assertion that no longer holds. <rdar://problem/16135814>
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. llvm-svn: 202437
Diffstat (limited to 'clang/lib/CodeGen/CodeGenPGO.h')
-rw-r--r--clang/lib/CodeGen/CodeGenPGO.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenPGO.h b/clang/lib/CodeGen/CodeGenPGO.h
index 083e5466c66..5f7da4c79a0 100644
--- a/clang/lib/CodeGen/CodeGenPGO.h
+++ b/clang/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;
}
OpenPOWER on IntegriCloud