go-gcc.cc (Gcc_backend::compound_statement): Don't return NULL_TREE.
* go-gcc.cc (Gcc_backend::compound_statement): Don't return NULL_TREE. From-SVN: r213761
This commit is contained in:
parent
7ca26091fc
commit
ff09769fac
|
@ -1,3 +1,8 @@
|
|||
2014-08-08 Ian Lance Taylor <iant@google.com>
|
||||
|
||||
* go-gcc.cc (Gcc_backend::compound_statement): Don't return
|
||||
NULL_TREE.
|
||||
|
||||
2014-07-24 Uros Bizjak <ubizjak@gmail.com>
|
||||
|
||||
* go-gcc.cc (Gcc_backend::global_variable_set_init): Rename
|
||||
|
|
|
@ -2123,6 +2123,12 @@ Gcc_backend::compound_statement(Bstatement* s1, Bstatement* s2)
|
|||
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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue