From: law Date: Thu, 28 Apr 2016 22:00:19 +0000 (+0000) Subject: 2016-04-28 Andrew MacLeod X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d215eeca57fcec3251775173838c34cdcf2c33a6;p=thirdparty%2Fgcc.git 2016-04-28 Andrew MacLeod * c-array-notation.c (fix_builtin_array_notation_fn): Fix final argument to build_modify_expr in two cases. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@235614 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/c/ChangeLog b/gcc/c/ChangeLog index a641721bece3..5161f7d56df2 100644 --- a/gcc/c/ChangeLog +++ b/gcc/c/ChangeLog @@ -1,3 +1,8 @@ +2016-04-28 Andrew MacLeod + + * c-array-notation.c (fix_builtin_array_notation_fn): Fix final + argument to build_modify_expr in two cases. + 2016-04-27 Bernd Schmidt * 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 716bd119ffc7..c7cf66a2c817 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);