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.
From-SVN: r230311
+2015-11-13 Martin Liska <mliska@suse.cz>
+
+ PR ipa/68311
+ * ipa-icf.c (sem_item_optimizer::traverse_congruence_split):
+ Replace ctor with auto_vec and initialization in a loop.
+
2015-11-13 Richard Biener <rguenther@suse.de>
PR tree-optimization/68306
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++)
{