Don't crash if a result variable redefines a parameter.
From-SVN: r170451
This commit is contained in:
parent
32e0b68a4b
commit
1b4d46a696
1 changed files with 2 additions and 1 deletions
|
@ -2558,7 +2558,8 @@ Function::create_named_result_variables(Gogo* gogo)
|
|||
}
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue