Commit 73f7bc29 authored by Matthias Braun's avatar Matthias Braun
Browse files

benewalloc: fix assert hitting when dying value was used at 2 inputs

[r26369]
parent 4ea5c8e5
...@@ -535,7 +535,9 @@ static void free_reg_of_value(ir_node *node) ...@@ -535,7 +535,9 @@ static void free_reg_of_value(ir_node *node)
reg = arch_get_irn_register(node); reg = arch_get_irn_register(node);
r = arch_register_get_index(reg); r = arch_register_get_index(reg);
assignment = &assignments[r]; assignment = &assignments[r];
assert(assignment->value == node); /* assignment->value may be NULL if a value is used at 2 inputs
so it gets freed twice. */
assert(assignment->value == node || assignment->value == NULL);
assignment->value = NULL; assignment->value = NULL;
} }
......
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