This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Adjust control dependence delete


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]