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
fa6ddc85
Commit
fa6ddc85
authored
Oct 25, 2014
by
Christoph Mallon
Browse files
betranshlp: Forbid changing the transformer, even if it was be_duplicate_node.
parent
9fa2aac7
Changes
1
Show whitespace changes
Inline
Side-by-side
ir/be/betranshlp.c
View file @
fa6ddc85
...
@@ -102,10 +102,8 @@ ir_node *be_transform_phi(ir_node *node, const arch_register_req_t *req)
...
@@ -102,10 +102,8 @@ ir_node *be_transform_phi(ir_node *node, const arch_register_req_t *req)
void
be_set_transform_function
(
ir_op
*
op
,
be_transform_func
func
)
void
be_set_transform_function
(
ir_op
*
op
,
be_transform_func
func
)
{
{
/* shouldn't be assigned twice (except for exchanging the default
/* Shouldn't be assigned twice. */
* be_duplicate_node entries) */
assert
(
!
op
->
ops
.
generic
);
assert
(
op
->
ops
.
generic
==
NULL
||
op
->
ops
.
generic
==
(
op_func
)
be_duplicate_node
);
op
->
ops
.
generic
=
(
op_func
)
func
;
op
->
ops
.
generic
=
(
op_func
)
func
;
}
}
...
...
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