Skip to content

Commit 8bed3aa

Browse files
committed
Cleanup
1 parent d485207 commit 8bed3aa

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

gcc/jit/jit-playback.cc

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2336,7 +2336,7 @@ add_try_catch (location *loc,
23362336
{
23372337
tree success_body = alloc_stmt_list ();
23382338

2339-
2339+
// TODO: find a better way to keep the EH_ELSE_EXPR than creating a nop via inline asm.
23402340
tree t_string = build_string ("nop");
23412341
tree asm_stmt
23422342
= build5 (ASM_EXPR, void_type_node, t_string, NULL_TREE, NULL_TREE, NULL_TREE, NULL_TREE);
@@ -2346,9 +2346,7 @@ add_try_catch (location *loc,
23462346
ASM_VOLATILE_P (asm_stmt) = 1;
23472347
ASM_INPUT_P (asm_stmt) = 0;
23482348
append_to_statement_list (asm_stmt, &success_body);
2349-
//debug_tree (success_body);
23502349

2351-
// TODO: perhaps we need a EH_FILTER_EXPR instead?
23522350
catch_body = build2 (EH_ELSE_EXPR, void_type_node, success_body, catch_body);
23532351
add_stmt (build2 (TRY_FINALLY_EXPR, void_type_node,
23542352
try_body, catch_body));
@@ -2358,8 +2356,6 @@ add_try_catch (location *loc,
23582356
catch_body = build2(CATCH_EXPR, void_type_node, NULL, catch_body);
23592357
tree try_catch = build2 (TRY_CATCH_EXPR, void_type_node,
23602358
try_body, catch_body);
2361-
//if (is_finally)
2362-
// TRY_CATCH_IS_CLEANUP (try_catch) = true;
23632359
add_stmt (try_catch);
23642360
}
23652361
}

0 commit comments

Comments
 (0)