From 1a985ca83a4da70b0810727942e02badc70852ab Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Sat, 16 Aug 2014 00:54:32 +0000 Subject: [PATCH] compiler: Pass initialization of frame temporary to backend. From-SVN: r214057 --- gcc/go/gofrontend/gogo.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gcc/go/gofrontend/gogo.cc b/gcc/go/gofrontend/gogo.cc index 623befd..654b6c3 100644 --- a/gcc/go/gofrontend/gogo.cc +++ b/gcc/go/gofrontend/gogo.cc @@ -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. -- 2.7.4