]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix handling of functions with named results that call recover.
authorIan Lance Taylor <ian@gcc.gnu.org>
Wed, 22 Dec 2010 01:22:56 +0000 (01:22 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Wed, 22 Dec 2010 01:22:56 +0000 (01:22 +0000)
From-SVN: r168156

gcc/go/gofrontend/gogo.cc

index bf197e5632e9e0592e9f480ecc1a35b3b08bab60..59141fbfd6fb26d692eaeaf994907de581ad7a6b 100644 (file)
@@ -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_);