summaryrefslogtreecommitdiff
path: root/gcc/ipa-icf.h
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2014-11-27 16:36:10 +0100
committerMartin Liska <marxin@gcc.gnu.org>2014-11-27 15:36:10 +0000
commitc190efccf0bd045b1b4ab4316e17a4674698cca8 (patch)
treeaf6e5c910894ed736447a5b8f37d44901fde3654 /gcc/ipa-icf.h
parenta92bf1b1c7942a6fb8af77bf8d90382aab60341f (diff)
downloadgcc-c190efccf0bd045b1b4ab4316e17a4674698cca8.tar.gz
IPA ICF: fix memory leak.
* ipa-icf.c (sem_function::equals_private): int* is replaced with auto_vec. (sem_function::bb_dict_test): Likewise. * ipa-icf.h: Likewise. Co-Authored-By: David Malcolm <dmalcolm@redhat.com> From-SVN: r218129
Diffstat (limited to 'gcc/ipa-icf.h')
-rw-r--r--gcc/ipa-icf.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ipa-icf.h b/gcc/ipa-icf.h
index 046e858c6a8..8be61494bb9 100644
--- a/gcc/ipa-icf.h
+++ b/gcc/ipa-icf.h
@@ -275,7 +275,7 @@ private:
/* Basic blocks dictionary BB_DICT returns true if SOURCE index BB
corresponds to TARGET. */
- bool bb_dict_test (int* bb_dict, int source, int target);
+ bool bb_dict_test (auto_vec<int> bb_dict, int source, int target);
/* Iterates all tree types in T1 and T2 and returns true if all types
are compatible. If COMPARE_POLYMORPHIC is set to true,