From 74efe52204a654da607db21844d4e8aef626cf3a Mon Sep 17 00:00:00 2001 From: mpolacek Date: Wed, 20 May 2015 11:45:07 +0000 Subject: * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P. * gimplify.c (gimplify_modify_expr_rhs): Likewise. * c-ada-spec.c (dump_sloc): Use DECL_P. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223440 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/gimplify.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/gimplify.c') diff --git a/gcc/gimplify.c b/gcc/gimplify.c index c5eccf06280..2720d02f47a 100644 --- a/gcc/gimplify.c +++ b/gcc/gimplify.c @@ -4222,7 +4222,7 @@ gimplify_modify_expr_rhs (tree *expr_p, tree *from_p, tree *to_p, { if (TREE_THIS_VOLATILE (t) != volatile_p) { - if (TREE_CODE_CLASS (TREE_CODE (t)) == tcc_declaration) + if (DECL_P (t)) t = build_simple_mem_ref_loc (EXPR_LOCATION (*from_p), build_fold_addr_expr (t)); if (REFERENCE_CLASS_P (t)) -- cgit v1.2.1