summaryrefslogtreecommitdiff
path: root/gcc/ipa-icf.c
diff options
context:
space:
mode:
authorchefmax <chefmax@138bc75d-0d04-0410-961f-82ee72b054a4>2014-10-31 10:53:36 +0000
committerchefmax <chefmax@138bc75d-0d04-0410-961f-82ee72b054a4>2014-10-31 10:53:36 +0000
commitecedf6a82a724398bef5898651b87240398187c9 (patch)
treee0216509fbb1d551bb177a57315031a2074d65d1 /gcc/ipa-icf.c
parent6f0a1b314b611d1ccc07db4ea433f7a1a613acea (diff)
downloadgcc-ecedf6a82a724398bef5898651b87240398187c9.tar.gz
gcc/
2014-10-31 Max Ostapenko <m.ostapenko@partner.samsung.com> PR ipa/63696 * ipa-icf.c (sem_function::~sem_function): Change free to delete to avoid alloc-dealloc mismatch with new, called in ipa_icf::sem_function::init. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@216954 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ipa-icf.c')
-rw-r--r--gcc/ipa-icf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ipa-icf.c b/gcc/ipa-icf.c
index 975894beee0..a278a6262bd 100644
--- a/gcc/ipa-icf.c
+++ b/gcc/ipa-icf.c
@@ -216,7 +216,7 @@ sem_function::sem_function (cgraph_node *node, hashval_t hash,
sem_function::~sem_function ()
{
for (unsigned i = 0; i < bb_sorted.length (); i++)
- free (bb_sorted[i]);
+ delete (bb_sorted[i]);
arg_types.release ();
bb_sizes.release ();