mirror of
https://forge.sourceware.org/marek/gcc.git
synced 2026-02-21 19:35:36 -05:00
Use DECL_VIRTUAL_P in eval_is_override
This commit is contained in:
@@ -1477,10 +1477,7 @@ eval_is_override (tree r)
|
||||
{
|
||||
r = maybe_get_reflection_fndecl (r);
|
||||
if (TREE_CODE (r) == FUNCTION_DECL
|
||||
&& DECL_CLASS_SCOPE_P (r)
|
||||
&& !DECL_CONSTRUCTOR_P (r)
|
||||
&& (IDENTIFIER_VIRTUAL_P (DECL_NAME (r))
|
||||
|| DECL_CONV_FN_P (r))
|
||||
&& (DECL_VIRTUAL_P (r) || DECL_CONV_FN_P (r))
|
||||
&& !DECL_STATIC_FUNCTION_P (r)
|
||||
&& is_override (DECL_CONTEXT (r), r))
|
||||
return boolean_true_node;
|
||||
|
||||
Reference in New Issue
Block a user