Commit ff09769f by Ian Lance Taylor Committed by Ian Lance Taylor

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
parent 7ca26091
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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment