Fix profile_count::to_sreal_scale
gcc/ChangeLog: * profile-count.cc (profile_count::to_sreal_scale): Value is not know if we divide by zero.
This commit is contained in:
parent
9fdbd7d6fa
commit
645c67f80c
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Reference in a new issue