compiler: Pass initialization of frame temporary to backend.
From-SVN: r214057
This commit is contained in:
parent
9fa05a40f6
commit
1a985ca83a
1 changed files with 2 additions and 0 deletions
|
@ -5176,6 +5176,8 @@ Function::build(Gogo* gogo, Named_object* named_function)
|
|||
gogo->backend()->init_statement(vars[i], var_inits[i]);
|
||||
init.push_back(init_stmt);
|
||||
}
|
||||
if (defer_init != NULL)
|
||||
init.push_back(defer_init);
|
||||
Bstatement* var_init = gogo->backend()->statement_list(init);
|
||||
|
||||
// Initialize all variables before executing this code block.
|
||||
|
|
Loading…
Add table
Reference in a new issue