mirror of
https://forge.sourceware.org/marek/gcc.git
synced 2026-02-22 03:47:02 -05:00
Merge VAR_DECL and FUNCTION_DECL cases in members_of_representable_p.
This commit is contained in:
committed by
Marek Polacek
parent
1cc58bbd7f
commit
b01d0d7189
@@ -6472,14 +6472,8 @@ members_of_representable_p (tree c, tree r)
|
||||
|| TREE_CODE (r) == FIELD_DECL
|
||||
|| TREE_CODE (r) == NAMESPACE_DECL)
|
||||
return true;
|
||||
if (VAR_P (r) && !undeduced_auto_decl (r))
|
||||
if (VAR_OR_FUNCTION_DECL_P (r) && !undeduced_auto_decl (r))
|
||||
return true;
|
||||
if (TREE_CODE (r) == FUNCTION_DECL)
|
||||
{
|
||||
if (undeduced_auto_decl (r))
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user