OSDN Git Service

Use backend types for all type conversions.
[pf3gnuchains/gcc-fork.git] / gcc / go / gofrontend / statements.cc
index 7e422fc..4fdf8f1 100644 (file)
@@ -375,7 +375,7 @@ Temporary_statement::do_get_backend(Translate_context* context)
   else
     bfunction = tree_to_function(function->func_value()->get_decl());
 
-  Btype* btype = tree_to_type(this->type()->get_tree(context->gogo()));
+  Btype* btype = this->type()->get_backend(context->gogo());
 
   Bexpression* binit;
   if (this->init_ == NULL)