diff options
author | Marek Polacek <polacek@redhat.com> | 2015-06-25 16:38:31 +0000 |
---|---|---|
committer | Marek Polacek <mpolacek@gcc.gnu.org> | 2015-06-25 16:38:31 +0000 |
commit | 0ae9bd2715d973460bbf600ca7371add571e3508 (patch) | |
tree | c06da7c9c228125d82710e24882cf0f1975caa4b /gcc/c/c-array-notation.c | |
parent | eee335102e36d60367366895729a48b1a24fb23c (diff) | |
download | gcc-0ae9bd2715d973460bbf600ca7371add571e3508.zip gcc-0ae9bd2715d973460bbf600ca7371add571e3508.tar.gz gcc-0ae9bd2715d973460bbf600ca7371add571e3508.tar.bz2 |
array-notation-common.c: Use VAR_P throughout.
* array-notation-common.c: Use VAR_P throughout.
* c-ada-spec.c: Likewise.
* c-common.c: Likewise.
* c-format.c: Likewise.
* c-gimplify.c: Likewise.
* c-omp.c: Likewise.
* c-pragma.c: Likewise.
* c-pretty-print.c: Likewise.
* cilk.c: Likewise.
* c-array-notation.c: Use VAR_P throughout.
* c-decl.c: Likewise.
* c-objc-common.c: Likewise.
* c-parser.c: Likewise.
* c-typeck.c: Likewise.
From-SVN: r224949
Diffstat (limited to 'gcc/c/c-array-notation.c')
-rw-r--r-- | gcc/c/c-array-notation.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c/c-array-notation.c b/gcc/c/c-array-notation.c index 2816680..0292468 100644 --- a/gcc/c/c-array-notation.c +++ b/gcc/c/c-array-notation.c @@ -87,7 +87,7 @@ make_triplet_val_inv (location_t loc, tree *value) tree var, new_exp; if (TREE_CODE (*value) != INTEGER_CST && TREE_CODE (*value) != PARM_DECL - && TREE_CODE (*value) != VAR_DECL) + && !VAR_P (*value)) { var = build_decl (loc, VAR_DECL, NULL_TREE, integer_type_node); new_exp = build_modify_expr (loc, var, TREE_TYPE (var), NOP_EXPR, loc, |