diff options
Diffstat (limited to 'gcc/tree-ssa.c')
-rw-r--r-- | gcc/tree-ssa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-ssa.c b/gcc/tree-ssa.c index cc8c83d7c00..a787f710360 100644 --- a/gcc/tree-ssa.c +++ b/gcc/tree-ssa.c @@ -1930,7 +1930,7 @@ maybe_optimize_var (tree var, bitmap addresses_taken, bitmap not_reg_needs) /* If the variable is not in the list of referenced vars then we do not need to touch it nor can we rename it. */ - if (!referenced_var_lookup (DECL_UID (var))) + if (!referenced_var_lookup (cfun, DECL_UID (var))) return false; if (TREE_ADDRESSABLE (var) |