Support dtor sections on Mach-O.
[libfirm] / ir / ana / ircfscc.c
index c069ed0..25f9731 100644 (file)
@@ -77,9 +77,7 @@ typedef struct scc_info {
 
 /** Allocate a new scc_info on the given obstack */
 static inline scc_info *new_scc_info(struct obstack *obst) {
-       scc_info *info = obstack_alloc(obst, sizeof(*info));
-       memset(info, 0, sizeof(*info));
-       return info;
+       return OALLOCZ(obst, scc_info);
 }
 
 /**