Patchwork Adjust control dependence delete

login
register
mail settings
Submitter Richard Guenther
Date Sept. 6, 2013, 10:37 a.m.
Message ID <alpine.LNX.2.00.1309061236180.3869@zhemvz.fhfr.qr>
Download mbox | patch
Permalink /patch/273146/
State New
Headers show

Comments

Richard Guenther - Sept. 6, 2013, 10:37 a.m.
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.

Patch

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);