Commit 6094bf5b authored by Matthias Braun's avatar Matthias Braun
Browse files

fix phase_reinit not correctly using the return value of the reinit function

[r27710]
parent 00c6cd4e
......@@ -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]);
}
}
}
......
......@@ -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]);
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment