summaryrefslogtreecommitdiffhomepage
path: root/ir/be/beloopana.c
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2012-07-12 19:26:10 +0200
committerChristoph Mallon <christoph.mallon@gmx.de>2012-07-13 23:03:56 +0200
commit7d61ad5fbb6a87bea369c8a01103a92d9ab79a48 (patch)
tree2d9a76fc0124fb0cdda9336c961907ce7b3e46fc /ir/be/beloopana.c
parentc6571686bfbfb3c87ae24ae1dc568e685d6cd49a (diff)
Add the return type as parameter to the macros set_find() and set_insert().
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 9d2f812..815b190 100644
--- a/ir/be/beloopana.c
+++ b/ir/be/beloopana.c
@@ -141,7 +141,7 @@ static unsigned be_compute_loop_pressure(be_loopana_t *loop_ana, ir_loop *loop,
key.loop = loop;
key.cls = cls;
key.max_pressure = 0;
- entry = (be_loop_info_t*)set_insert(loop_ana->data, &key, sizeof(key), HASH_LOOP_INFO(&key));
+ entry = set_insert(be_loop_info_t, loop_ana->data, &key, sizeof(key), HASH_LOOP_INFO(&key));
entry->max_pressure = MAX(entry->max_pressure, pressure);
return pressure;
@@ -218,7 +218,7 @@ unsigned be_get_loop_pressure(be_loopana_t *loop_ana, const arch_register_class_
key.loop = loop;
key.cls = cls;
- entry = (be_loop_info_t*)set_find(loop_ana->data, &key, sizeof(key), HASH_LOOP_INFO(&key));
+ entry = set_find(be_loop_info_t, loop_ana->data, &key, sizeof(key), HASH_LOOP_INFO(&key));
if (entry)
pressure = entry->max_pressure;