summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bestate.c
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2012-07-13 22:57:54 +0200
committerChristoph Mallon <christoph.mallon@gmx.de>2012-07-13 23:03:59 +0200
commit292b89d3367cdeae0cb2a1fca37b6b84e781eab8 (patch)
tree85f3a973f84061520a29dbb316bf5debe91637e4 /ir/be/bestate.c
parenta5002eb22945df142f72bb3807065b96caf1bb1f (diff)
Add a wrapper macro for ir_nodehashmap_get(), which has the return type as additional parameter.
Diffstat (limited to 'ir/be/bestate.c')
-rw-r--r--ir/be/bestate.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ir/be/bestate.c b/ir/be/bestate.c
index adf7859..e609532 100644
--- a/ir/be/bestate.c
+++ b/ir/be/bestate.c
@@ -110,8 +110,7 @@ static inline spill_info_t *create_spill_info(minibelady_env_t *env, ir_node *st
static inline spill_info_t *get_spill_info(minibelady_env_t *env, const ir_node *node)
{
- spill_info_t *spill_info
- = (spill_info_t*) ir_nodehashmap_get(&env->spill_infos, node);
+ spill_info_t *spill_info = ir_nodehashmap_get(spill_info_t, &env->spill_infos, node);
//ir_fprintf(stderr, "Get %+F -> %p\n", node, spill_info);
return spill_info;
}