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
This commit is contained in:
Bin Cheng 2018-12-07 09:49:13 +00:00 committed by Bin Cheng
parent 09fb2e2c94
commit 0876cb1c7b
2 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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;
}