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
146b796a
Commit
146b796a
authored
Feb 21, 2009
by
Moritz Kroll
Browse files
Fixed set_method_value_param_type()
[r25540]
parent
7f9f6b54
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/tr/type.c
View file @
146b796a
...
...
@@ -1330,8 +1330,20 @@ ir_entity *get_method_value_param_ent(ir_type *method, int pos) {
* Sets the type that represents the copied value arguments.
*/
void
set_method_value_param_type
(
ir_type
*
method
,
ir_type
*
tp
)
{
int
i
,
n
;
assert
(
method
&&
(
method
->
type_op
==
type_method
));
assert
(
is_value_param_type
(
tp
));
assert
(
get_method_n_params
(
method
)
==
get_struct_n_members
(
tp
));
method
->
attr
.
ma
.
value_params
=
tp
;
n
=
get_struct_n_members
(
tp
);
for
(
i
=
0
;
i
<
n
;
i
++
)
{
ir_entity
*
ent
=
get_struct_member
(
tp
,
i
);
method
->
attr
.
ma
.
params
[
i
].
ent
=
ent
;
}
}
/*
...
...
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