Commit 1b4d46a6 by Ian Lance Taylor

Don't crash if a result variable redefines a parameter.

From-SVN: r170451
parent 32e0b68a
......@@ -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);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment