aboutsummaryrefslogtreecommitdiff
path: root/gcc/value-prof.c
diff options
context:
space:
mode:
authorPrathamesh Kulkarni <prathamesh.kulkarni@linaro.org>2017-06-27 06:13:54 +0000
committerPrathamesh Kulkarni <prathamesh3492@gcc.gnu.org>2017-06-27 06:13:54 +0000
commitd25c0cc1a537adf0dbbacad88f2f4dc20e9edd26 (patch)
treead768538c9473d7db1ab0ccf5ffeca11ca201bc2 /gcc/value-prof.c
parent936615752a29ab245708d40782427c25e60a2114 (diff)
downloadgcc-d25c0cc1a537adf0dbbacad88f2f4dc20e9edd26.zip
gcc-d25c0cc1a537adf0dbbacad88f2f4dc20e9edd26.tar.gz
gcc-d25c0cc1a537adf0dbbacad88f2f4dc20e9edd26.tar.bz2
value-prof.c (free_hist): Remove call to memset and the enclosing if condition.
2017-06-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> * value-prof.c (free_hist): Remove call to memset and the enclosing if condition. From-SVN: r249675
Diffstat (limited to 'gcc/value-prof.c')
-rw-r--r--gcc/value-prof.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/gcc/value-prof.c b/gcc/value-prof.c
index 56ec9fe..2fed338 100644
--- a/gcc/value-prof.c
+++ b/gcc/value-prof.c
@@ -564,8 +564,6 @@ free_hist (void **slot, void *data ATTRIBUTE_UNUSED)
{
histogram_value hist = *(histogram_value *) slot;
free (hist->hvalue.counters);
- if (flag_checking)
- memset (hist, 0xab, sizeof (*hist));
free (hist);
return 1;
}