From: amker Date: Fri, 7 Dec 2018 09:49:13 +0000 (+0000) Subject: * profile-count.h (profile_count::oeprator>=): Fix typo by inverting X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=96fdb9d4a45d32d116aa4fd0042a479db9f2b82d;p=thirdparty%2Fgcc.git * profile-count.h (profile_count::oeprator>=): Fix typo by inverting return condition when *this is precise zero. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@266885 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e75e78563589..b84958acb71f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2018-12-07 Bin Cheng + + * profile-count.h (profile_count::oeprator>=): Fix typo by inverting + return condition when *this is precise zero. + 2018-12-07 Jakub Jelinek PR target/85593 diff --git a/gcc/profile-count.h b/gcc/profile-count.h index 620d6b714579..183a4fbf5d12 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; }