initialize irprog datastructure to zero
authorGötz Lindenmaier <goetz@ipd.info.uni-karlsruhe.de>
Thu, 22 Jan 2004 15:13:19 +0000 (15:13 +0000)
committerGötz Lindenmaier <goetz@ipd.info.uni-karlsruhe.de>
Thu, 22 Jan 2004 15:13:19 +0000 (15:13 +0000)
[r2342]

ir/ir/irprog.c

index 6a891af..b0c2b63 100644 (file)
@@ -53,6 +53,7 @@ ir_prog *new_ir_prog (void) {
   ir_prog *res;
 
   res = (ir_prog *) malloc (sizeof(ir_prog));
+  memset(res, 0, sizeof(res));
   irp = res;
   /* res->obst      = (struct obstack *) xmalloc (sizeof (struct obstack)); */
   res->graphs = NEW_ARR_F (ir_graph *, 1);