diff options
author | Jakub Jelinek <jakub@redhat.com> | 2018-01-17 21:08:36 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2018-01-17 21:08:36 +0000 |
commit | 667674a24322e79aeeae6d6ac326f6d4ea35e7c8 (patch) | |
tree | dd9d5226029d277eaf44525ba6843b889072f2e2 /gcc/cp/cp-gimplify.c | |
parent | fbc58ef7149f252f4a232a7037a56744d4121d66 (diff) |
PR c++/83897
* cp-gimplify.c (cp_maybe_instrument_return): Handle
CLEANUP_POINT_EXPR.
* g++.dg/cpp0x/pr83897.C: New test.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@256819 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/cp-gimplify.c')
-rw-r--r-- | gcc/cp/cp-gimplify.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/cp/cp-gimplify.c b/gcc/cp/cp-gimplify.c index e97247c1384..21859251795 100644 --- a/gcc/cp/cp-gimplify.c +++ b/gcc/cp/cp-gimplify.c @@ -1581,6 +1581,7 @@ cp_maybe_instrument_return (tree fndecl) t = BIND_EXPR_BODY (t); continue; case TRY_FINALLY_EXPR: + case CLEANUP_POINT_EXPR: t = TREE_OPERAND (t, 0); continue; case STATEMENT_LIST: |