diff options
author | mpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-06-25 16:38:31 +0000 |
---|---|---|
committer | mpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-06-25 16:38:31 +0000 |
commit | f48c7f4a6a9a70f95dab2da3bcd5544eb513b4cf (patch) | |
tree | c06da7c9c228125d82710e24882cf0f1975caa4b /gcc/c/c-array-notation.c | |
parent | 577041e3f5772d7793caff2b7aa93ebc05b89325 (diff) | |
download | gcc-f48c7f4a6a9a70f95dab2da3bcd5544eb513b4cf.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@224949 138bc75d-0d04-0410-961f-82ee72b054a4
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 2816680a995..02924688336 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, |