diff options
author | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-06-29 22:39:29 +0000 |
---|---|---|
committer | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-06-29 22:39:29 +0000 |
commit | a6217c59ed7451712c99e4e3910656cf413e7016 (patch) | |
tree | df5915b3873e926b9a0de2cd6ebe7789ba9e8d96 /gcc/tree-eh.c | |
parent | 583777607e4f217542de15ac0fb2d8927f7af2c1 (diff) | |
download | gcc-a6217c59ed7451712c99e4e3910656cf413e7016.tar.gz |
* tree-eh.c (lower_try_finally_switch): Really put the location of the
last statement of the finally block onto the switch.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@189086 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-eh.c')
-rw-r--r-- | gcc/tree-eh.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/tree-eh.c b/gcc/tree-eh.c index 89b95fa78af..3b35ca42862 100644 --- a/gcc/tree-eh.c +++ b/gcc/tree-eh.c @@ -1320,9 +1320,8 @@ lower_try_finally_switch (struct leh_state *state, struct leh_tf_state *tf) /* The location of the finally is either the last stmt in the finally block or the location of the TRY_FINALLY itself. */ - finally_loc = gimple_seq_last_stmt (tf->top_p_seq) != NULL ? - gimple_location (gimple_seq_last_stmt (tf->top_p_seq)) - : tf_loc; + x = gimple_seq_last_stmt (finally); + finally_loc = x ? gimple_location (x) : tf_loc; /* Lower the finally block itself. */ lower_eh_constructs_1 (state, &finally); |