summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bechordal_common.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/bechordal_common.c
parentfd269bc519af571ad9a96afd65bcd504f3034f8b (diff)
make firm compilable with a c++ compiler
[r28127]
Diffstat (limited to 'ir/be/bechordal_common.c')
-rw-r--r--ir/be/bechordal_common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ir/be/bechordal_common.c b/ir/be/bechordal_common.c
index 62a5956..4094add 100644
--- a/ir/be/bechordal_common.c
+++ b/ir/be/bechordal_common.c
@@ -86,7 +86,7 @@ static inline border_t *border_add(be_chordal_env_t *env, struct list_head *head
* the def node (see the code above). It was placed into the
* link field of the irn, so we can get it there.
*/
- b = get_irn_link(irn);
+ b = (border_t*)get_irn_link(irn);
DEBUG_ONLY(assert(b && b->magic == BORDER_FOURCC && "Illegal border encountered"));
}
@@ -113,7 +113,7 @@ void create_borders(ir_node *block, void *env_ptr)
#define border_use(irn, step, real) \
border_add(env, head, irn, step, ++pressure, 0, real)
- be_chordal_env_t *env = env_ptr;
+ be_chordal_env_t *env = (be_chordal_env_t*)env_ptr;
bitset_t *live = bitset_malloc(get_irg_last_idx(env->irg));
ir_node *irn;
be_lv_t *lv = be_get_irg_liveness(env->irg);