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
486187ba
Commit
486187ba
authored
Apr 07, 2009
by
Michael Beck
Browse files
- BugFix: we exchange the value param entities, so a further check will ALWAYS fail
This fixes fehler165.c [r25807]
parent
1c4cee58
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/beabi.c
View file @
486187ba
...
...
@@ -1569,8 +1569,11 @@ static void lower_frame_sels_walker(ir_node *irn, void *data)
ir_node
*
bl
=
get_nodes_block
(
irn
);
ir_node
*
nw
;
int
pos
=
0
;
int
is_value_param
=
0
;
if
(
get_entity_owner
(
ent
)
==
ctx
->
value_tp
)
{
is_value_param
=
1
;
/* replace by its copy from the argument type */
pos
=
get_struct_member_index
(
ctx
->
value_tp
,
ent
);
ent
=
get_argument_entity
(
ent
,
ctx
);
...
...
@@ -1579,8 +1582,8 @@ static void lower_frame_sels_walker(ir_node *irn, void *data)
nw
=
be_new_FrameAddr
(
ctx
->
sp_class
,
current_ir_graph
,
bl
,
ctx
->
frame
,
ent
);
exchange
(
irn
,
nw
);
/* check, if it's a param
s
el and if have not seen this entity before */
if
(
get_entity_owner
(
ent
)
==
ctx
->
value_
t
p
&&
get_entity_link
(
ent
)
==
NULL
)
{
/* check, if it's a param
S
el and if have not seen this entity before */
if
(
is_
value_p
aram
&&
get_entity_link
(
ent
)
==
NULL
)
{
ent_pos_pair
pair
;
pair
.
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