#include "irgwalk.h"
#include "irnode.h"
#include "pmap.h"
+#include "xmalloc.h"
#include "cdep.h"
#include "irprintf.h"
#endif
if (dep == NULL) {
- cdep* newdep = malloc(sizeof(*newdep));
+ cdep* newdep = xmalloc(sizeof(*newdep));
newdep->node = dep_on;
newdep->next = NULL;
if (dep->next == NULL) break;
dep = dep->next;
}
- newdep = malloc(sizeof(*newdep));
+ newdep = xmalloc(sizeof(*newdep));
newdep->node = dep_on;
newdep->next = NULL;
dep->next = newdep;
irg_block_walk_graph(irg, block_walker, NULL, &wd);
size = set_count(freqs);
- matrix = malloc(size*size*sizeof(*matrix));
+ matrix = xmalloc(size*size*sizeof(*matrix));
memset(matrix, 0, size*size*sizeof(*matrix));
- rhs = malloc(size*sizeof(*rhs));
+ rhs = xmalloc(size*sizeof(*rhs));
memset(rhs, 0, size*sizeof(*rhs));
set_foreach(freqs, freq) {