Commit e8c24600 by Ian Lance Taylor

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

Test is bug479.

From-SVN: r202751
parent 8928eff3
...@@ -7752,8 +7752,6 @@ Builtin_call_expression::do_numeric_constant_value(Numeric_constant* nc) const ...@@ -7752,8 +7752,6 @@ Builtin_call_expression::do_numeric_constant_value(Numeric_constant* nc) const
return false; return false;
if (arg_type->is_abstract()) if (arg_type->is_abstract())
return false; return false;
if (arg_type->named_type() != NULL)
arg_type->named_type()->convert(this->gogo_);
unsigned int ret; unsigned int ret;
if (this->code_ == BUILTIN_SIZEOF) if (this->code_ == BUILTIN_SIZEOF)
......
...@@ -2288,9 +2288,7 @@ Type::is_backend_type_size_known(Gogo* gogo) ...@@ -2288,9 +2288,7 @@ Type::is_backend_type_size_known(Gogo* gogo)
} }
case TYPE_NAMED: case TYPE_NAMED:
// Begin converting this type to the backend representation. this->named_type()->convert(gogo);
// This will create a placeholder if necessary.
this->get_backend(gogo);
return this->named_type()->is_named_backend_type_size_known(); return this->named_type()->is_named_backend_type_size_known();
case TYPE_FORWARD: case TYPE_FORWARD:
......
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