diff --git a/gcc/stmt.c b/gcc/stmt.c index 6d782341106..fb17900046c 100644 --- a/gcc/stmt.c +++ b/gcc/stmt.c @@ -3957,9 +3957,10 @@ expand_decl_cleanup (decl, cleanup) { seq = get_insns (); end_sequence (); - thisblock->data.block.last_unconditional_cleanup - = emit_insns_after (seq, - thisblock->data.block.last_unconditional_cleanup); + if (seq) + thisblock->data.block.last_unconditional_cleanup + = emit_insns_after (seq, + thisblock->data.block.last_unconditional_cleanup); } else {