- clear the descriptions if SSA construction is restarted
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Fri, 15 Aug 2008 20:04:21 +0000 (20:04 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Fri, 15 Aug 2008 20:04:21 +0000 (20:04 +0000)
[r21207]

ir/ir/irgraph.c

index 0f0526a..0c5b735 100644 (file)
@@ -166,6 +166,10 @@ void irg_set_nloc(ir_graph *res, int n_loc) {
                                               the store. This is not the number of parameters
                                               to the procedure!  */
        }
+       if (res->loc_descriptions) {
+               xfree(res->loc_descriptions);
+       }
+       res->loc_descriptions = NULL;
 }
 
 /* Allocates a list of nodes: