Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
73f7bc29
Commit
73f7bc29
authored
Aug 17, 2009
by
Matthias Braun
Browse files
benewalloc: fix assert hitting when dying value was used at 2 inputs
[r26369]
parent
4ea5c8e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/benewalloc.c
View file @
73f7bc29
...
...
@@ -535,7 +535,9 @@ static void free_reg_of_value(ir_node *node)
reg
=
arch_get_irn_register
(
node
);
r
=
arch_register_get_index
(
reg
);
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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment