Message ID | mcrd2ca3mmt.fsf@iant-glaptop.roam.corp.google.com |
---|---|
State | New |
Headers | show |
Index: go-gcc.cc =================================================================== --- go-gcc.cc (revision 213760) +++ go-gcc.cc (working copy) @@ -2123,6 +2123,12 @@ Gcc_backend::compound_statement(Bstateme if (t == error_mark_node) return this->error_statement(); append_to_statement_list(t, &stmt_list); + + // If neither statement has any side effects, stmt_list can be NULL + // at this point. + if (stmt_list == NULL_TREE) + stmt_list = integer_zero_node; + return this->make_statement(stmt_list); }