From 75b63a9191017a605ff048e509709750566dbbad Mon Sep 17 00:00:00 2001 From: Sebastian Pop Date: Wed, 25 Nov 2009 04:56:49 +0000 Subject: graphite-poly.h (copy_lst): Do full copy of LST. 2009-10-09 Sebastian Pop * graphite-poly.h (copy_lst): Do full copy of LST. From-SVN: r154566 --- gcc/graphite-poly.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'gcc/graphite-poly.h') diff --git a/gcc/graphite-poly.h b/gcc/graphite-poly.h index b3541d6..6ae330c 100644 --- a/gcc/graphite-poly.h +++ b/gcc/graphite-poly.h @@ -678,7 +678,16 @@ copy_lst (lst_p lst) return NULL; if (LST_LOOP_P (lst)) - return new_lst_loop (VEC_copy (lst_p, heap, LST_SEQ (lst))); + { + int i; + lst_p l; + VEC (lst_p, heap) *seq = VEC_alloc (lst_p, heap, 5); + + for (i = 0; VEC_iterate (lst_p, LST_SEQ (lst), i, l); i++) + VEC_safe_push (lst_p, heap, seq, copy_lst (l)); + + return new_lst_loop (seq); + } return new_lst_stmt (LST_PBB (lst)); } -- cgit v1.1