projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
11d6fcc
)
Fix handling of functions with named results that call recover.
author
Ian Lance Taylor
<ian@gcc.gnu.org>
Wed, 22 Dec 2010 01:22:56 +0000
(
01:22
+0000)
committer
Ian 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
patch
|
blob
|
history
diff --git
a/gcc/go/gofrontend/gogo.cc
b/gcc/go/gofrontend/gogo.cc
index bf197e5632e9e0592e9f480ecc1a35b3b08bab60..59141fbfd6fb26d692eaeaf994907de581ad7a6b 100644
(file)
--- 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_);