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
5ab45bb5
Commit
5ab45bb5
authored
Aug 18, 2011
by
Matthias Braun
Browse files
fix mode of call-result proj
parent
de4915db
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/sparc/sparc_transform.c
View file @
5ab45bb5
...
...
@@ -2154,12 +2154,14 @@ static ir_node *gen_Proj_Proj_Call(ir_node *node)
ir_type
*
function_type
=
get_Call_type
(
call
);
calling_convention_t
*
cconv
=
sparc_decide_calling_convention
(
function_type
,
NULL
);
const
reg_or_stackslot_t
*
res
=
&
cconv
->
results
[
pn
];
ir_mode
*
mode
;
const
reg_or_stackslot_t
*
res
=
&
cconv
->
results
[
pn
];
ir_mode
*
mode
=
get_irn_mode
(
node
)
;
long
new_pn
=
1
+
res
->
reg_offset
;
assert
(
res
->
req0
!=
NULL
&&
res
->
req1
==
NULL
);
mode
=
res
->
req0
->
cls
->
mode
;
if
(
mode_needs_gp_reg
(
mode
))
{
mode
=
mode_gp
;
}
sparc_free_calling_convention
(
cconv
);
return
new_r_Proj
(
new_call
,
mode
,
new_pn
);
...
...
Write
Preview
Supports
Markdown
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