diff options
author | Kewen Lin <linkw@linux.ibm.com> | 2020-01-14 02:34:10 -0600 |
---|---|---|
committer | Kewen Lin <linkw@linux.ibm.com> | 2020-01-14 02:39:11 -0600 |
commit | b38e86ddb7a9b6d7e87d7cc0b23983d027fcbd96 (patch) | |
tree | ac08636905c56ca66c946998800cc121edde8c52 /gcc/alias.c | |
parent | edabbec31e3bfc9a9757f80c8610706ed00e5a1a (diff) |
Fix typo and avoid possible memory leak in average_num_loop_insns
Function average_num_loop_insns forgets to free loop body in early
return. Besides, overflow comparison checks 1000000 (e6) but the
return value is 100000 (e5), fix this typo.
gcc/ChangeLog
2020-01-14 Kewen Lin <linkw@gcc.gnu.org>
* cfgloopanal.c (average_num_loop_insns): Free bbs when early
return, fix typo on return value.
Diffstat (limited to 'gcc/alias.c')
0 files changed, 0 insertions, 0 deletions