diff options
author | Andrew MacLeod <amacleod@redhat.com> | 2016-04-28 22:00:19 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 2016-04-28 16:00:19 -0600 |
commit | 9f405ce1b5bc4befcc4c2ac482e92f1662131659 (patch) | |
tree | 919284c7fdb33fe1fd4a31bc74a496c6e19d9234 /gcc | |
parent | f22693cb96ef3b6b2006fb644a11267ccea845a6 (diff) | |
download | gcc-9f405ce1b5bc4befcc4c2ac482e92f1662131659.zip gcc-9f405ce1b5bc4befcc4c2ac482e92f1662131659.tar.gz gcc-9f405ce1b5bc4befcc4c2ac482e92f1662131659.tar.bz2 |
c-array-notation.c (fix_builtin_array_notation_fn): Fix final argument to build_modify_expr in two cases.
2016-04-28 Andrew MacLeod <amacleod@redhat.com>
* c-array-notation.c (fix_builtin_array_notation_fn): Fix final
argument to build_modify_expr in two cases.
From-SVN: r235614
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/c/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/c/c-array-notation.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/c/ChangeLog b/gcc/c/ChangeLog index a641721..5161f7d 100644 --- a/gcc/c/ChangeLog +++ b/gcc/c/ChangeLog @@ -1,3 +1,8 @@ +2016-04-28 Andrew MacLeod <amacleod@redhat.com> + + * c-array-notation.c (fix_builtin_array_notation_fn): Fix final + argument to build_modify_expr in two cases. + 2016-04-27 Bernd Schmidt <bschmidt@redhat.com> * c-parser.c (c_parser_postfix_expression_after_primary): Call diff --git a/gcc/c/c-array-notation.c b/gcc/c/c-array-notation.c index 716bd11..c7cf66a 100644 --- a/gcc/c/c-array-notation.c +++ b/gcc/c/c-array-notation.c @@ -489,7 +489,7 @@ fix_builtin_array_notation_fn (tree an_builtin_fn, tree *new_var) new_yes_expr = build_modify_expr (location, array_ind_value, TREE_TYPE (array_ind_value), NOP_EXPR, - location, func_parm, TREE_OPERAND (array_op0, 1)); + location, func_parm, TREE_TYPE (TREE_OPERAND (array_op0, 1))); } new_yes_list = alloc_stmt_list (); append_to_statement_list (new_yes_ind, &new_yes_list); @@ -539,7 +539,7 @@ fix_builtin_array_notation_fn (tree an_builtin_fn, tree *new_var) new_yes_expr = build_modify_expr (location, array_ind_value, TREE_TYPE (array_ind_value), NOP_EXPR, - location, func_parm, TREE_OPERAND (array_op0, 1)); + location, func_parm, TREE_TYPE (TREE_OPERAND (array_op0, 1))); } new_yes_list = alloc_stmt_list (); append_to_statement_list (new_yes_ind, &new_yes_list); |