Commit d25c0cc1 by Prathamesh Kulkarni Committed by Prathamesh Kulkarni

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
parent 93661575
2017-06-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
* value-prof.c (free_hist): Remove call to memset and the enclosing if
condition.
gcc/ChangeLog: gcc/ChangeLog:
2017-06-26 Jerome Lambourg <lambourg@adacore.com> 2017-06-26 Jerome Lambourg <lambourg@adacore.com>
......
...@@ -564,8 +564,6 @@ free_hist (void **slot, void *data ATTRIBUTE_UNUSED) ...@@ -564,8 +564,6 @@ free_hist (void **slot, void *data ATTRIBUTE_UNUSED)
{ {
histogram_value hist = *(histogram_value *) slot; histogram_value hist = *(histogram_value *) slot;
free (hist->hvalue.counters); free (hist->hvalue.counters);
if (flag_checking)
memset (hist, 0xab, sizeof (*hist));
free (hist); free (hist);
return 1; return 1;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment