c++-coroutines - Remove an unused var.

2019-12-24  Iain Sandoe  <iain@sandoe.co.uk>

	gcc/cp/
	* coroutines.cc (captures_temporary): Remove unused var.

From-SVN: r279727
This commit is contained in:
Iain Sandoe
2019-12-24 17:02:09 +00:00
committed by Iain Sandoe
parent 3a6c80013c
commit 11c2efb4ea
2 changed files with 5 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
2019-12-24 Iain Sandoe <iain@sandoe.co.uk>
gcc/cp/
* coroutines.cc (captures_temporary): Remove unused var.
2019-12-24 Iain Sandoe <iain@sandoe.co.uk>
gcc/

View File

@@ -2302,7 +2302,6 @@ captures_temporary (tree *stmt, int *do_subtree, void *d)
/* Does this call capture references?
Strip the ADDRESS_EXPR to get the fn decl and inspect it. */
tree fn = TREE_OPERAND (CALL_EXPR_FN (*stmt), 0);
bool is_meth = TREE_CODE (TREE_TYPE (fn)) == METHOD_TYPE;
tree arg = TYPE_ARG_TYPES (TREE_TYPE (fn));
unsigned offset = 3;
for (unsigned anum = 0; arg != NULL; arg = TREE_CHAIN (arg), anum++)