diff options
author | Marek Polacek <polacek@redhat.com> | 2015-05-20 11:45:07 +0000 |
---|---|---|
committer | Marek Polacek <mpolacek@gcc.gnu.org> | 2015-05-20 11:45:07 +0000 |
commit | 3a65ee74e89fb6bc423e32be8aca2bdbedefc98b (patch) | |
tree | af982c6fd0c19c914399f079818f81d069af7dfd /gcc/gimplify.c | |
parent | 7bd1191163cda036d4d82ba7dbe1c07ce97d210d (diff) | |
download | gcc-3a65ee74e89fb6bc423e32be8aca2bdbedefc98b.zip gcc-3a65ee74e89fb6bc423e32be8aca2bdbedefc98b.tar.gz gcc-3a65ee74e89fb6bc423e32be8aca2bdbedefc98b.tar.bz2 |
gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
* 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.
From-SVN: r223440
Diffstat (limited to 'gcc/gimplify.c')
-rw-r--r-- | gcc/gimplify.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/gimplify.c b/gcc/gimplify.c index c5eccf0..2720d02 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)) |