summaryrefslogtreecommitdiffhomepage
path: root/ir/be/beloopana.c
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2008-10-05 15:32:31 +0200
committerChristoph Mallon <christoph.mallon@gmx.de>2008-10-05 15:32:31 +0200
commite07b61c6ed5d198a484761f8a40a4f26520d964d (patch)
tree0a1e38829570d6a9bfc2363391494637981177ff /ir/be/beloopana.c
parent325f4d96cb0bad6a93ac1e45291b82662d16bea5 (diff)
Good day and welcome to the FIRM XMALLOC*() macros. These macros are provided for the type safety and convenience of the IPD research facility personnel. The time is 15:32. Check xmalloc.h for details.
[r22494]
Diffstat (limited to 'ir/be/beloopana.c')
-rw-r--r--ir/be/beloopana.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ir/be/beloopana.c b/ir/be/beloopana.c
index eb00490..160412e 100644
--- a/ir/be/beloopana.c
+++ b/ir/be/beloopana.c
@@ -162,7 +162,7 @@ static unsigned be_compute_loop_pressure(be_loopana_t *loop_ana, ir_loop *loop,
be_loopana_t *be_new_loop_pressure_cls(be_irg_t *birg,
const arch_register_class_t *cls) {
ir_graph *irg = be_get_birg_irg(birg);
- be_loopana_t *loop_ana = xmalloc(sizeof(*loop_ana));
+ be_loopana_t *loop_ana = XMALLOC(be_loopana_t);
loop_ana->data = new_set(cmp_loop_info, 16);
loop_ana->birg = birg;
@@ -190,7 +190,7 @@ be_loopana_t *be_new_loop_pressure(be_irg_t *birg,
const arch_register_class_t *cls)
{
ir_graph *irg = be_get_birg_irg(birg);
- be_loopana_t *loop_ana = xmalloc(sizeof(*loop_ana));
+ be_loopana_t *loop_ana = XMALLOC(be_loopana_t);
ir_loop *irg_loop = get_irg_loop(irg);
const arch_env_t *arch_env = be_get_birg_arch_env(birg);
int i;