summaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/CodeGenPGO.h
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2014-01-07 06:52:12 +0000
committerChandler Carruth <chandlerc@gmail.com>2014-01-07 06:52:12 +0000
commitf772b2e728c0a4c24cd471c5654fb47b938e78a5 (patch)
tree9b497608d9f19b3f28a22d16c9da6be0aca239d0 /lib/CodeGen/CodeGenPGO.h
parent1a1b5e35a306027d19088f08c686214877e80814 (diff)
Fix a -Wparentheses warning from GCC that caught a badly formed assert.
I have no idea why Clang's warning doesn't fire here, looks like a Clang bug. I'll investigate that separately. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@198677 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenPGO.h')
-rw-r--r--lib/CodeGen/CodeGenPGO.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CodeGenPGO.h b/lib/CodeGen/CodeGenPGO.h
index 43dee8689d..0a0699067b 100644
--- a/lib/CodeGen/CodeGenPGO.h
+++ b/lib/CodeGen/CodeGenPGO.h
@@ -149,7 +149,7 @@ 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");
+ assert((Adjust > 0 || (uint64_t)(-Adjust) <= Count) && "Negative count");
return Count + Adjust;
}
/// Get the value of the counter in this region's parent, ie, the region that