profile-count.h (profile_count::oeprator>=): Fix typo by inverting return condition...
authorBin Cheng <bin.cheng@linux.alibaba.com>
Fri, 7 Dec 2018 09:49:13 +0000 (09:49 +0000)
committerBin Cheng <amker@gcc.gnu.org>
Fri, 7 Dec 2018 09:49:13 +0000 (09:49 +0000)
* profile-count.h (profile_count::oeprator>=): Fix typo by inverting
return condition when *this is precise zero.

From-SVN: r266885

gcc/ChangeLog
gcc/profile-count.h

index e75e78563589764ee2513c97bd1103a49b54dad1..b84958acb71fbb609cbb7d2e1554d8fe253ad873 100644 (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
index 620d6b7145790ee311dd90d0e0c97c8da92f4175..183a4fbf5d1296a51156ab62dbc4f4be601704e3 100644 (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;
     }