From 11c2efb4eac015cb1dc1e354eadd2d6dc8689ec7 Mon Sep 17 00:00:00 2001 From: Iain Sandoe Date: Tue, 24 Dec 2019 17:02:09 +0000 Subject: [PATCH] c++-coroutines - Remove an unused var. 2019-12-24 Iain Sandoe gcc/cp/ * coroutines.cc (captures_temporary): Remove unused var. From-SVN: r279727 --- ChangeLog.coroutines | 5 +++++ gcc/cp/coroutines.cc | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) 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++)