View | Details | Return to bug 35364
Collapse All | Expand All

(-)tree-eh.c (+6 lines)
Lines 2174-2179 optimize_double_finally (tree one, tree Link Here
2174
  if (TREE_CODE (oneh) != TRY_CATCH_EXPR)
2174
  if (TREE_CODE (oneh) != TRY_CATCH_EXPR)
2175
    return;
2175
    return;
2176
2176
2177
  /* Check for a non-empty statement here (the ~B() above), as we will fail
2178
     later if we create an empty catch block.  */
2179
  i = tsi_start (TREE_OPERAND (oneh, 0));
2180
  if (tsi_end_p (i))
2181
    return;
2182
2177
  if (same_handler_p (TREE_OPERAND (oneh, 1), TREE_OPERAND (two, 1)))
2183
  if (same_handler_p (TREE_OPERAND (oneh, 1), TREE_OPERAND (two, 1)))
2178
    {
2184
    {
2179
      tree b = TREE_OPERAND (oneh, 0);
2185
      tree b = TREE_OPERAND (oneh, 0);

Return to bug 35364