diff options
author | marxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-11-13 12:26:23 +0000 |
---|---|---|
committer | marxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-11-13 12:26:23 +0000 |
commit | 8fa1d7c551d75ec8f84f72d8b6694315cb8ed640 (patch) | |
tree | 86d4856f80e442f55887223218ce9abb13b107aa /gcc/ipa-icf.c | |
parent | f6593f36bc1806152d88d5494c19f92987bf2773 (diff) | |
download | gcc-8fa1d7c551d75ec8f84f72d8b6694315cb8ed640.tar.gz |
Fix PR ipa/68311
PR ipa/68311
* ipa-icf.c (sem_item_optimizer::traverse_congruence_split):
Replace ctor with auto_vec and initialization in a loop.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@230311 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ipa-icf.c')
-rw-r--r-- | gcc/ipa-icf.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/ipa-icf.c b/gcc/ipa-icf.c index b6a97c3e122..bf1acae2310 100644 --- a/gcc/ipa-icf.c +++ b/gcc/ipa-icf.c @@ -3046,7 +3046,9 @@ sem_item_optimizer::traverse_congruence_split (congruence_class * const &cls, if (popcount > 0 && popcount < cls->members.length ()) { - congruence_class* newclasses[2] = { new congruence_class (class_id++), new congruence_class (class_id++) }; + auto_vec <congruence_class *, 2> newclasses; + newclasses.quick_push (new congruence_class (class_id++)); + newclasses.quick_push (new congruence_class (class_id++)); for (unsigned int i = 0; i < cls->members.length (); i++) { |