revivie max_irg_visited
[libfirm] / ir / ana / irscc.c
index 7c3d8ab..8205a1b 100644 (file)
@@ -29,9 +29,7 @@
  */
 #include "config.h"
 
-#ifdef HAVE_STRING_H
-# include <string.h>
-#endif
+#include <string.h>
 #include <stdlib.h>
 
 #include "irloop_t.h"
@@ -90,9 +88,7 @@ typedef struct scc_info {
  * Allocates 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);
 }
 
 /**