Commit 13590986 authored by Michael Beck's avatar Michael Beck
Browse files

Simplify pointer arithmetic.

[r26953]
parent aaee4db7
......@@ -407,7 +407,7 @@ void edges_notify_edge_kind(ir_node *src, int pos, ir_node *tgt,
edge->kind = kind;
edge->list.next = NULL;
edge->list.prev = NULL;
memset(((char*)edge) + sizeof(ir_edge_t), 0, edges_private_size);
memset(edge + 1, 0, edges_private_size);
DEBUG_ONLY(edge->src_nr = get_irn_node_nr(src));
new_edge = ir_edgeset_insert(edges, edge);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment