Test case is https://go.dev/cl/385454.
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/385474
-47380f733ca932384e59492d2f04374edd8ec95e
+7f8fee099d6de4a5a857765e0ddfae356ead554c
The first line of this file holds the git revision number of the last
merge done from the gofrontend repository.
void
Ptrmask::set_from(Gogo* gogo, Type* type, int64_t ptrsize, int64_t offset)
{
+ if (!type->has_pointer())
+ return;
+
switch (type->base()->classification())
{
default:
case Type::TYPE_STRUCT:
{
- if (!type->has_pointer())
- return;
-
const Struct_field_list* fields = type->struct_type()->fields();
int64_t soffset = 0;
for (Struct_field_list::const_iterator pf = fields->begin();
}
else
{
- if (!type->has_pointer())
- return;
-
int64_t len;
if (!type->array_type()->int_length(&len))
{