aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-structalias.c
diff options
context:
space:
mode:
authorTom de Vries <tom@codesourcery.com>2015-10-31 08:08:18 +0000
committerTom de Vries <vries@gcc.gnu.org>2015-10-31 08:08:18 +0000
commita543155b20f2a6efe7645c6c968d3ddf07d38faf (patch)
treeb952224f139df071d66ae4c4cc35049fc1648b9e /gcc/tree-ssa-structalias.c
parentaf146490bb04205107cb23e301ec7a8ff927b5fc (diff)
downloadgcc-a543155b20f2a6efe7645c6c968d3ddf07d38faf.zip
gcc-a543155b20f2a6efe7645c6c968d3ddf07d38faf.tar.gz
gcc-a543155b20f2a6efe7645c6c968d3ddf07d38faf.tar.bz2
Use make_copy_constraint in ipa_pta_execute
2015-10-31 Tom de Vries <tom@codesourcery.com> * tree-ssa-structalias.c (ipa_pta_execute): Use make_copy_constraint. From-SVN: r229617
Diffstat (limited to 'gcc/tree-ssa-structalias.c')
-rw-r--r--gcc/tree-ssa-structalias.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/gcc/tree-ssa-structalias.c b/gcc/tree-ssa-structalias.c
index 6f157a1..f482c72 100644
--- a/gcc/tree-ssa-structalias.c
+++ b/gcc/tree-ssa-structalias.c
@@ -7371,17 +7371,7 @@ ipa_pta_execute (void)
fi = lookup_vi_for_tree (node->decl);
rvi = first_vi_for_offset (fi, fi_result);
if (rvi && rvi->offset == fi_result)
- {
- struct constraint_expr includes;
- struct constraint_expr var;
- includes.var = escaped_id;
- includes.offset = 0;
- includes.type = SCALAR;
- var.var = rvi->id;
- var.offset = 0;
- var.type = SCALAR;
- process_constraint (new_constraint (includes, var));
- }
+ make_copy_constraint (get_varinfo (escaped_id), rvi->id);
}
}