From: Ian Lance Taylor Date: Wed, 22 Dec 2010 01:22:56 +0000 (+0000) Subject: Fix handling of functions with named results that call recover. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0cb04e3af791095b7082327bf8dbbfeddd871631;p=gcc.git Fix handling of functions with named results that call recover. From-SVN: r168156 --- diff --git a/gcc/go/gofrontend/gogo.cc b/gcc/go/gofrontend/gogo.cc index bf197e5632e..59141fbfd6f 100644 --- a/gcc/go/gofrontend/gogo.cc +++ b/gcc/go/gofrontend/gogo.cc @@ -2628,7 +2628,7 @@ void Function::swap_for_recover(Function *x) { gcc_assert(this->enclosing_ == x->enclosing_); - gcc_assert(this->named_results_ == x->named_results_); + std::swap(this->named_results_, x->named_results_); std::swap(this->closure_var_, x->closure_var_); std::swap(this->block_, x->block_); gcc_assert(this->location_ == x->location_);