diff --git a/ChangeLog.coroutines b/ChangeLog.coroutines index 299809ae9db5..7da9df5fe065 100644 --- a/ChangeLog.coroutines +++ b/ChangeLog.coroutines @@ -1,3 +1,8 @@ +2019-12-24 Iain Sandoe + + gcc/cp/ + * coroutines.cc (captures_temporary): Remove unused var. + 2019-12-24 Iain Sandoe gcc/ diff --git a/gcc/cp/coroutines.cc b/gcc/cp/coroutines.cc index dee6bd56f31b..36ce6b789bd5 100644 --- a/gcc/cp/coroutines.cc +++ b/gcc/cp/coroutines.cc @@ -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++)