Commit 5cdf5650 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

irnode: Assert that set_irn_n() is not used to set a deleted node as new input.

parent cf4139d8
......@@ -194,6 +194,7 @@ void set_irn_n(ir_node *node, int n, ir_node *in)
assert(-1 <= n);
assert(n < get_irn_arity(node));
assert(in && in->kind == k_ir_node);
assert(!is_Deleted(in));
/* Call the hook */
hook_set_irn_n(node, n, in, node->in[n + 1]);
......
Markdown is supported
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