diff options
Diffstat (limited to 'gcc/var-tracking.c')
-rw-r--r-- | gcc/var-tracking.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gcc/var-tracking.c b/gcc/var-tracking.c index 07b3e07..e405f0d 100644 --- a/gcc/var-tracking.c +++ b/gcc/var-tracking.c @@ -1810,8 +1810,7 @@ vars_copy (variable_table_type *dst, variable_table_type *src) static inline tree var_debug_decl (tree decl) { - if (decl && TREE_CODE (decl) == VAR_DECL - && DECL_HAS_DEBUG_EXPR_P (decl)) + if (decl && VAR_P (decl) && DECL_HAS_DEBUG_EXPR_P (decl)) { tree debugdecl = DECL_DEBUG_EXPR (decl); if (DECL_P (debugdecl)) @@ -5145,7 +5144,7 @@ track_expr_p (tree expr, bool need_rtl) return DECL_RTL_SET_P (expr); /* If EXPR is not a parameter or a variable do not track it. */ - if (TREE_CODE (expr) != VAR_DECL && TREE_CODE (expr) != PARM_DECL) + if (!VAR_P (expr) && TREE_CODE (expr) != PARM_DECL) return 0; /* It also must have a name... */ @@ -5161,7 +5160,7 @@ track_expr_p (tree expr, bool need_rtl) don't need to track this expression if the ultimate declaration is ignored. */ realdecl = expr; - if (TREE_CODE (realdecl) == VAR_DECL && DECL_HAS_DEBUG_EXPR_P (realdecl)) + if (VAR_P (realdecl) && DECL_HAS_DEBUG_EXPR_P (realdecl)) { realdecl = DECL_DEBUG_EXPR (realdecl); if (!DECL_P (realdecl)) |