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
6094bf5b
Commit
6094bf5b
authored
Jul 08, 2010
by
Matthias Braun
Browse files
fix phase_reinit not correctly using the return value of the reinit function
[r27710]
parent
00c6cd4e
Changes
2
Hide whitespace changes
Inline
Side-by-side
ir/ir/irphase.c
View file @
6094bf5b
...
...
@@ -100,7 +100,7 @@ void phase_reinit_irn_data(ir_phase *phase, phase_irn_reinit *data_reinit)
for
(
i
=
0
,
n
=
phase
->
n_data_ptr
;
i
<
n
;
++
i
)
{
if
(
phase
->
data_ptr
[
i
])
{
ir_node
*
node
=
get_idx_irn
(
irg
,
i
);
data_reinit
(
phase
,
node
,
phase
->
data_ptr
[
i
]);
phase
->
data_ptr
[
i
]
=
data_reinit
(
phase
,
node
,
phase
->
data_ptr
[
i
]);
}
}
}
...
...
ir/ir/irphase_t.h
View file @
6094bf5b
...
...
@@ -79,7 +79,7 @@ static inline void phase_reinit_single_irn_data(ir_phase *phase, ir_node *irn,
idx
=
get_irn_idx
(
irn
);
if
(
phase
->
data_ptr
[
idx
])
reinit
(
phase
,
irn
,
phase
->
data_ptr
[
idx
]);
phase
->
data_ptr
[
idx
]
=
reinit
(
phase
,
irn
,
phase
->
data_ptr
[
idx
]);
}
/**
...
...
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