Message ID | mcripwa17at.fsf@google.com |
---|---|
State | New |
Headers | show |
diff -r b7e7cc313154 go/gogo.cc --- a/go/gogo.cc Tue Feb 22 21:52:37 2011 -0800 +++ b/go/gogo.cc Wed Feb 23 18:38:36 2011 -0800 @@ -2558,7 +2558,8 @@ } Result_variable* result = new Result_variable(p->type(), this, index); Named_object* no = block->bindings()->add_result_variable(name, result); - this->named_results_->push_back(no); + if (no->is_result_variable()) + this->named_results_->push_back(no); } }