Commit 344b0fdf by James Norris Committed by Thomas Schwinge

[C++] Use existing local variable in cp_parser_oacc_enter_exit_data

	gcc/cp/
	* parser.c (cp_parser_oacc_enter_exit_data): Use existing local
	variable.

Reviewed-by: Thomas Schwinge <thomas@codesourcery.com>

From-SVN: r266687
parent 020dd8e4
2018-11-30 James Norris <jnorris@codesourcery.com>
* parser.c (cp_parser_oacc_enter_exit_data): Use existing local
variable.
2018-11-29 Paolo Carlini <paolo.carlini@oracle.com> 2018-11-29 Paolo Carlini <paolo.carlini@oracle.com>
* decl.c (compute_array_index_type_loc): New, like the current * decl.c (compute_array_index_type_loc): New, like the current
......
...@@ -38472,7 +38472,7 @@ cp_parser_oacc_enter_exit_data (cp_parser *parser, cp_token *pragma_tok, ...@@ -38472,7 +38472,7 @@ cp_parser_oacc_enter_exit_data (cp_parser *parser, cp_token *pragma_tok,
stmt = enter ? make_node (OACC_ENTER_DATA) : make_node (OACC_EXIT_DATA); stmt = enter ? make_node (OACC_ENTER_DATA) : make_node (OACC_EXIT_DATA);
TREE_TYPE (stmt) = void_type_node; TREE_TYPE (stmt) = void_type_node;
OMP_STANDALONE_CLAUSES (stmt) = clauses; OMP_STANDALONE_CLAUSES (stmt) = clauses;
SET_EXPR_LOCATION (stmt, pragma_tok->location); SET_EXPR_LOCATION (stmt, loc);
add_stmt (stmt); add_stmt (stmt);
return stmt; return stmt;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment