aboutsummaryrefslogtreecommitdiff
path: root/gcc/cgraph.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cgraph.h')
-rw-r--r--gcc/cgraph.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cgraph.h b/gcc/cgraph.h
index f5f5476..cedaaac 100644
--- a/gcc/cgraph.h
+++ b/gcc/cgraph.h
@@ -2650,7 +2650,7 @@ inline bool
decl_in_symtab_p (const_tree decl)
{
return (TREE_CODE (decl) == FUNCTION_DECL
- || (TREE_CODE (decl) == VAR_DECL
+ || (VAR_P (decl)
&& (TREE_STATIC (decl) || DECL_EXTERNAL (decl))));
}
@@ -3359,7 +3359,7 @@ cgraph_node::optimize_for_size_p (void)
inline symtab_node *
symtab_node::get_create (tree node)
{
- if (TREE_CODE (node) == VAR_DECL)
+ if (VAR_P (node))
return varpool_node::get_create (node);
else
return cgraph_node::get_create (node);