diff mbox series

Fix pasto in to_sreal_scale

Message ID 20171119185622.GC60547@kam.mff.cuni.cz
State New
Headers show
Series Fix pasto in to_sreal_scale | expand

Commit Message

Jan Hubicka Nov. 19, 2017, 6:56 p.m. UTC
Hi,
this patch fixes ICE with -fno-guess-branch-probability.

Bootstrapped/regtested x86_64-linux, comitted.

Honza

	PR ipa/83001
	* profile-count.c (profile_count::to_sreal_scale): Fix return value
	for uninitialied counts.
diff mbox series

Patch

Index: profile-count.c
===================================================================
--- profile-count.c	(revision 254929)
+++ profile-count.c	(working copy)
@@ -268,7 +268,7 @@  profile_count::to_sreal_scale (profile_c
     {
       if (known)
 	*known = false;
-      return CGRAPH_FREQ_BASE;
+      return 1;
     }
   if (known)
     *known = true;