Commit deed2020 by Ian Lance Taylor

Fix type of discarded send expression.

From-SVN: r170634
parent b5ba6ad2
......@@ -12321,7 +12321,10 @@ Send_expression::do_traverse(Traverse* traverse)
Type*
Send_expression::do_type()
{
return Type::lookup_bool_type();
if (this->is_value_discarded_)
return Type::make_void_type();
else
return Type::lookup_bool_type();
}
// Set types.
......
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