Message ID | ZMDEwXtgcXt8s3kE@kam.mff.cuni.cz |
---|---|
State | New |
Headers | show |
Series | Fix profile_count::to_sreal_scale | expand |
diff --git a/gcc/profile-count.cc b/gcc/profile-count.cc index 2c07ebc5942..eaf0f0d787e 100644 --- a/gcc/profile-count.cc +++ b/gcc/profile-count.cc @@ -345,7 +345,7 @@ profile_count::to_sreal_scale (profile_count in, bool *known) const return 1; } if (known) - *known = true; + *known = in.m_val != 0; if (*this == in) return 1; gcc_checking_assert (compatible_p (in));