aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-structalias.c
diff options
context:
space:
mode:
authorTom de Vries <tom@codesourcery.com>2015-10-23 09:38:45 +0000
committerTom de Vries <vries@gcc.gnu.org>2015-10-23 09:38:45 +0000
commit0becf3548df5d8e099fc385feed08ff333e384bb (patch)
tree177bb4437f29648fcd7eec0f221d9bf79b237543 /gcc/tree-ssa-structalias.c
parent498dbe0a138483d114cee051cbbdac9747236880 (diff)
downloadgcc-0becf3548df5d8e099fc385feed08ff333e384bb.zip
gcc-0becf3548df5d8e099fc385feed08ff333e384bb.tar.gz
gcc-0becf3548df5d8e099fc385feed08ff333e384bb.tar.bz2
Use make_constraint_from in intra_create_variable_infos
2015-10-23 Tom de Vries <tom@codesourcery.com> * tree-ssa-structalias.c (intra_create_variable_infos): Use make_constraint_from. From-SVN: r229219
Diffstat (limited to 'gcc/tree-ssa-structalias.c')
-rw-r--r--gcc/tree-ssa-structalias.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/gcc/tree-ssa-structalias.c b/gcc/tree-ssa-structalias.c
index db0ab1e..66a04b2 100644
--- a/gcc/tree-ssa-structalias.c
+++ b/gcc/tree-ssa-structalias.c
@@ -5867,20 +5867,13 @@ intra_create_variable_infos (struct function *fn)
&& TYPE_RESTRICT (TREE_TYPE (t))
&& !type_contains_placeholder_p (TREE_TYPE (TREE_TYPE (t))))
{
- struct constraint_expr lhsc, rhsc;
varinfo_t vi;
tree heapvar = build_fake_var_decl (TREE_TYPE (TREE_TYPE (t)));
DECL_EXTERNAL (heapvar) = 1;
vi = create_variable_info_for_1 (heapvar, "PARM_NOALIAS");
vi->is_restrict_var = 1;
insert_vi_for_tree (heapvar, vi);
- lhsc.var = p->id;
- lhsc.type = SCALAR;
- lhsc.offset = 0;
- rhsc.var = vi->id;
- rhsc.type = ADDRESSOF;
- rhsc.offset = 0;
- process_constraint (new_constraint (lhsc, rhsc));
+ make_constraint_from (p, vi->id);
for (; vi; vi = vi_next (vi))
if (vi->may_have_pointers)
{