aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBin Cheng <bin.cheng@linux.alibaba.com>2018-12-07 09:49:13 +0000
committerBin Cheng <amker@gcc.gnu.org>2018-12-07 09:49:13 +0000
commit0876cb1c7b291db11e1de0b2b2b13b28152c5823 (patch)
treef44ca045b278c767cc9293df5ede3e21eee3f200
parent09fb2e2c94194aade08187b80232ca124ea148dd (diff)
downloadgcc-0876cb1c7b291db11e1de0b2b2b13b28152c5823.zip
gcc-0876cb1c7b291db11e1de0b2b2b13b28152c5823.tar.gz
gcc-0876cb1c7b291db11e1de0b2b2b13b28152c5823.tar.bz2
profile-count.h (profile_count::oeprator>=): Fix typo by inverting return condition when *this is precise zero.
* profile-count.h (profile_count::oeprator>=): Fix typo by inverting return condition when *this is precise zero. From-SVN: r266885
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/profile-count.h2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index e75e785..b84958a 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2018-12-07 Bin Cheng <bin.cheng@linux.alibaba.com>
+
+ * profile-count.h (profile_count::oeprator>=): Fix typo by inverting
+ return condition when *this is precise zero.
+
2018-12-07 Jakub Jelinek <jakub@redhat.com>
PR target/85593
diff --git a/gcc/profile-count.h b/gcc/profile-count.h
index 620d6b7..183a4fb 100644
--- a/gcc/profile-count.h
+++ b/gcc/profile-count.h
@@ -883,7 +883,7 @@ public:
if (other == profile_count::zero ())
return true;
if (*this == profile_count::zero ())
- return !(other == profile_count::zero ());
+ return (other == profile_count::zero ());
gcc_checking_assert (compatible_p (other));
return m_val >= other.m_val;
}