summaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-structalias.c
diff options
context:
space:
mode:
authorvries <vries@138bc75d-0d04-0410-961f-82ee72b054a4>2015-10-26 10:46:52 +0000
committervries <vries@138bc75d-0d04-0410-961f-82ee72b054a4>2015-10-26 10:46:52 +0000
commit0670e0bffa0dd544ab4c378cf04090ddb8ef1aeb (patch)
tree259e57db8c16c611f9fb7516e0f89be7fb143037 /gcc/tree-ssa-structalias.c
parent8be33fbe57ad66d128f5bf2883b6ac6321cc7251 (diff)
downloadgcc-0670e0bffa0dd544ab4c378cf04090ddb8ef1aeb.tar.gz
Inline get_vi_for_tree into intra_create_variable_infos
2015-10-26 Tom de Vries <tom@codesourcery.com> * tree-ssa-structalias.c (intra_create_variable_infos): Inline get_vi_for_tree call. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@229322 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-structalias.c')
-rw-r--r--gcc/tree-ssa-structalias.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/tree-ssa-structalias.c b/gcc/tree-ssa-structalias.c
index 66a04b2bd54..c5a7e2a3be5 100644
--- a/gcc/tree-ssa-structalias.c
+++ b/gcc/tree-ssa-structalias.c
@@ -5857,7 +5857,12 @@ intra_create_variable_infos (struct function *fn)
passed-by-reference argument. */
for (t = DECL_ARGUMENTS (fn->decl); t; t = DECL_CHAIN (t))
{
- varinfo_t p = get_vi_for_tree (t);
+ varinfo_t p = lookup_vi_for_tree (t);
+ if (p == NULL)
+ {
+ p = create_variable_info_for_1 (t, alias_get_name (t));
+ insert_vi_for_tree (t, p);
+ }
/* For restrict qualified pointers build a representative for
the pointed-to object. Note that this ends up handling