Commit 33e2d6f8 by Wilco Dijkstra Committed by Wilco Dijkstra

Move an use-after-free access before the delete.

    gcc/
	PR target/80671
	* config/aarch64/cortex-a57-fma-steering.c (merge_forest):
	Move member access before delete.

From-SVN: r247831
parent e1ad2926
2017-05-10 Wilco Dijkstra <wdijkstr@arm.com>
PR target/80671
* config/aarch64/cortex-a57-fma-steering.c (merge_forest):
Move member access before delete.
2017-05-10 Alexandre Oliva <aoliva@redhat.com>
* tree-inline.c (expand_call_inline): Split block at stmt
......
......@@ -411,9 +411,9 @@ fma_forest::merge_forest (fma_forest *other_forest)
the list of tree roots of ref_forest. */
this->m_globals->remove_forest (other_forest);
this->m_roots->splice (this->m_roots->begin (), *other_roots);
delete other_forest;
this->m_nb_nodes += other_forest->m_nb_nodes;
delete other_forest;
}
/* Dump information about the forest FOREST. */
......
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