This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[trivial, committed] Use decl_type in create_variable_info_for_1
- From: Tom de Vries <Tom_deVries at mentor dot com>
- To: "gcc-patches at gnu dot org" <gcc-patches at gnu dot org>
- Cc: Richard Biener <rguenther at suse dot de>
- Date: Wed, 4 Nov 2015 15:21:39 +0100
- Subject: [trivial, committed] Use decl_type in create_variable_info_for_1
- Authentication-results: sourceware.org; auth=none
Hi,
this patch uses the the decl_type variable more consistently in
create_variable_info_for_1.
Bootstrapped and reg-tested on x86_64.
Committed to trunk as trivial.
Thanks,
- Tom
Use decl_type in create_variable_info_for_1
2015-11-04 Tom de Vries <tom@codesourcery.com>
* tree-ssa-structalias.c (create_variable_info_for_1): Use decl_type
variable.
---
gcc/tree-ssa-structalias.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gcc/tree-ssa-structalias.c b/gcc/tree-ssa-structalias.c
index ded5a1e..98b5f16 100644
--- a/gcc/tree-ssa-structalias.c
+++ b/gcc/tree-ssa-structalias.c
@@ -5718,8 +5718,8 @@ create_variable_info_for_1 (tree decl, const char *name, bool add_id)
vi->fullsize = tree_to_uhwi (declsize);
vi->size = vi->fullsize;
vi->is_full_var = true;
- if (POINTER_TYPE_P (TREE_TYPE (decl))
- && TYPE_RESTRICT (TREE_TYPE (decl)))
+ if (POINTER_TYPE_P (decl_type)
+ && TYPE_RESTRICT (decl_type))
vi->only_restrict_pointers = 1;
fieldstack.release ();
return vi;
--
1.9.1