summaryrefslogtreecommitdiffhomepage
path: root/ir/be/beuses.c
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2010-11-04 13:15:30 +0100
committerMatthias Braun <matze@braunis.de>2010-11-04 13:15:30 +0100
commitce6161a7e42a48f7422b7babcc64d8ace18e2687 (patch)
tree2fa5272f9220c4e08a5309057f44646fb9f882a7 /ir/be/beuses.c
parentfd269bc519af571ad9a96afd65bcd504f3034f8b (diff)
make firm compilable with a c++ compiler
[r28127]
Diffstat (limited to 'ir/be/beuses.c')
-rw-r--r--ir/be/beuses.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ir/be/beuses.c b/ir/be/beuses.c
index 85c4b97..7baac59 100644
--- a/ir/be/beuses.c
+++ b/ir/be/beuses.c
@@ -68,8 +68,8 @@ struct be_uses_t {
static int cmp_use(const void *a, const void *b, size_t n)
{
- const be_use_t *p = a;
- const be_use_t *q = b;
+ const be_use_t *p = (const be_use_t*)a;
+ const be_use_t *q = (const be_use_t*)b;
(void) n;
return !(p->block == q->block && p->node == q->node);
@@ -89,7 +89,7 @@ static const be_use_t *get_or_set_use_block(be_uses_t *env,
temp.block = block;
temp.node = def;
- result = set_find(env->uses, &temp, sizeof(temp), hash);
+ result = (be_use_t*)set_find(env->uses, &temp, sizeof(temp), hash);
if (result == NULL) {
// insert templ first as we might end in a loop in the get_next_use
@@ -97,7 +97,7 @@ static const be_use_t *get_or_set_use_block(be_uses_t *env,
temp.next_use = USES_INFINITY;
temp.outermost_loop = -1;
temp.visited = 0;
- result = set_insert(env->uses, &temp, sizeof(temp), hash);
+ result = (be_use_t*)set_insert(env->uses, &temp, sizeof(temp), hash);
}
if (result->outermost_loop < 0 && result->visited < env->visited_counter) {