diff options
author | Yvan Roux <yvan.roux@linaro.org> | 2017-06-12 10:59:05 +0200 |
---|---|---|
committer | Yvan Roux <yvan.roux@linaro.org> | 2017-06-13 08:36:49 +0000 |
commit | 6b43d93b2865e2dd7a40d2754a7d9714719c7d8b (patch) | |
tree | 6784517ae392a8cb1c7ae9908c39f612377687b5 | |
parent | d1eca91e9f66f1f03d4eaa8f70fd3d14d26e7a97 (diff) |
gcc/
Backport from trunk r247831.
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.
Change-Id: I9b98c2bbf9dff70b7630dea0678793a919814d9c
-rw-r--r-- | gcc/config/aarch64/cortex-a57-fma-steering.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/config/aarch64/cortex-a57-fma-steering.c b/gcc/config/aarch64/cortex-a57-fma-steering.c index 4a3887984b4..94d7f9c5869 100644 --- a/gcc/config/aarch64/cortex-a57-fma-steering.c +++ b/gcc/config/aarch64/cortex-a57-fma-steering.c @@ -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. */ |