summaryrefslogtreecommitdiffhomepage
path: root/ir/be/beuses.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/beuses.c
parentc6571686bfbfb3c87ae24ae1dc568e685d6cd49a (diff)
Add the return type as parameter to the macros set_find() and set_insert().
Diffstat (limited to 'ir/be/beuses.c')
-rw-r--r--ir/be/beuses.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ir/be/beuses.c b/ir/be/beuses.c
index 87be078..41cd744 100644
--- a/ir/be/beuses.c
+++ b/ir/be/beuses.c
@@ -104,7 +104,7 @@ static const be_use_t *get_or_set_use_block(be_uses_t *env,
temp.block = block;
temp.node = def;
- result = (be_use_t*)set_find(env->uses, &temp, sizeof(temp), hash);
+ result = set_find(be_use_t, env->uses, &temp, sizeof(temp), hash);
if (result == NULL) {
// insert templ first as we might end in a loop in the get_next_use
@@ -112,7 +112,7 @@ static const be_use_t *get_or_set_use_block(be_uses_t *env,
temp.next_use = USES_INFINITY;
temp.outermost_loop = UNKNOWN_OUTERMOST_LOOP;
temp.visited = 0;
- result = (be_use_t*)set_insert(env->uses, &temp, sizeof(temp), hash);
+ result = set_insert(be_use_t, env->uses, &temp, sizeof(temp), hash);
}
if (result->outermost_loop == UNKNOWN_OUTERMOST_LOOP && result->visited < env->visited_counter) {