public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] Adjust control dependence delete
@ 2013-09-06 10:37 Richard Biener
  0 siblings, 0 replies; only message in thread
From: Richard Biener @ 2013-09-06 10:37 UTC (permalink / raw)
  To: gcc-patches


To be slightly more obvious now that it is a vec ...

Committed.

Richard.

2013-09-06  Richard Biener <rguenther@suse.de>

	* cfganal.c (control_dependences::~control_dependences):
	Properly free all of the vector.

Index: gcc/cfganal.c
===================================================================
--- gcc/cfganal.c	(revision 202316)
+++ gcc/cfganal.c	(working copy)
@@ -431,7 +431,7 @@ control_dependences::control_dependences
 
 control_dependences::~control_dependences ()
 {
-  for (int i = 0; i < last_basic_block; ++i)
+  for (unsigned i = 0; i < control_dependence_map.length (); ++i)
     BITMAP_FREE (control_dependence_map[i]);
   control_dependence_map.release ();
   free_edge_list (el);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-09-06 10:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-06 10:37 [PATCH] Adjust control dependence delete Richard Biener

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).