Fix memory leak in tree-ssa-reassoc.c

* tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.

From-SVN: r237559
This commit is contained in:
Martin Liska 2016-06-17 20:05:56 +02:00 committed by Martin Liska
parent 92354dc7a9
commit 0766b9ab92
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2016-06-17 Martin Liska <mliska@suse.cz>
* tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
2016-06-17 Martin Liska <mliska@suse.cz>
* predict.def: PRED_LOOP_EXIT from 92 to 85.

View File

@ -1807,7 +1807,7 @@ transform_add_to_multiply (vec<operand_entry *> *ops)
tree op = NULL_TREE;
int j;
int i, start = -1, end = 0, count = 0;
vec<std::pair <int, int> > indxs = vNULL;
auto_vec<std::pair <int, int> > indxs;
bool changed = false;
if (!INTEGRAL_TYPE_P (TREE_TYPE ((*ops)[0]->op))