2016-03-16 Tom de Vries <tom@codesourcery.com>
PR lto/70187
* ipa-devirt.c (possible_polymorphic_call_targets): Move
nodes.length () == 1 test to before first nodes[0] access.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234253
138bc75d-0d04-0410-961f-
82ee72b054a4
+2016-03-16 Tom de Vries <tom@codesourcery.com>
+
+ PR lto/70187
+ * ipa-devirt.c (possible_polymorphic_call_targets): Move
+ nodes.length () == 1 test to before first nodes[0] access.
+
2016-03-16 Tom de Vries <tom@codesourcery.com>
PR tree-optimization/68715
if (!outer_type->all_derivations_known)
{
if (!speculative && final_warning_records
+ && nodes.length () == 1
&& TREE_CODE (TREE_TYPE (nodes[0]->decl)) == METHOD_TYPE)
{
if (complete
- && nodes.length () == 1
&& warn_suggest_final_types
&& !outer_type->derived_types.length ())
{
}
if (complete
&& warn_suggest_final_methods
- && nodes.length () == 1
&& types_same_for_odr (DECL_CONTEXT (nodes[0]->decl),
outer_type->type))
{