compiler: Fix inconsistent check for structs using memcmp for ==.

Test is bug479.

From-SVN: r202751
This commit is contained in:
Ian Lance Taylor 2013-09-19 17:32:56 +00:00
parent 8928eff3b2
commit e8c24600cc
2 changed files with 1 additions and 5 deletions

View File

@ -7752,8 +7752,6 @@ Builtin_call_expression::do_numeric_constant_value(Numeric_constant* nc) const
return false;
if (arg_type->is_abstract())
return false;
if (arg_type->named_type() != NULL)
arg_type->named_type()->convert(this->gogo_);
unsigned int ret;
if (this->code_ == BUILTIN_SIZEOF)

View File

@ -2288,9 +2288,7 @@ Type::is_backend_type_size_known(Gogo* gogo)
}
case TYPE_NAMED:
// Begin converting this type to the backend representation.
// This will create a placeholder if necessary.
this->get_backend(gogo);
this->named_type()->convert(gogo);
return this->named_type()->is_named_backend_type_size_known();
case TYPE_FORWARD: