aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-ter.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/tree-ssa-ter.cc')
-rw-r--r--gcc/tree-ssa-ter.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-ssa-ter.cc b/gcc/tree-ssa-ter.cc
index cab54a3..68e9e1a 100644
--- a/gcc/tree-ssa-ter.cc
+++ b/gcc/tree-ssa-ter.cc
@@ -693,7 +693,7 @@ find_replaceable_in_bb (temp_expr_table *tab, basic_block bb)
/* Increment counter if this statement sets a local
register variable. */
if (gimple_assign_single_p (stmt)
- && (TREE_CODE (gimple_assign_lhs (stmt)) == VAR_DECL
+ && (VAR_P (gimple_assign_lhs (stmt))
&& DECL_HARD_REGISTER (gimple_assign_lhs (stmt))))
cur_reg_vars_cnt++;