diff options
Diffstat (limited to 'gcc/go/gofrontend/types.cc')
-rw-r--r-- | gcc/go/gofrontend/types.cc | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/gcc/go/gofrontend/types.cc b/gcc/go/gofrontend/types.cc index 5c8950a028b..b4620ff0c86 100644 --- a/gcc/go/gofrontend/types.cc +++ b/gcc/go/gofrontend/types.cc @@ -1529,7 +1529,7 @@ Type::make_type_descriptor_type() // The type descriptor type. Struct_type* type_descriptor_type = - Type::make_builtin_struct_type(12, + Type::make_builtin_struct_type(11, "kind", uint8_type, "align", uint8_type, "fieldAlign", uint8_type, @@ -1541,8 +1541,7 @@ Type::make_type_descriptor_type() "string", pointer_string_type, "", pointer_uncommon_type, "ptrToThis", - pointer_type_descriptor_type, - "zero", unsafe_pointer_type); + pointer_type_descriptor_type); Named_type* named = Type::make_builtin_named_type("commonType", type_descriptor_type); @@ -2074,15 +2073,6 @@ Type::type_descriptor_constructor(Gogo* gogo, int runtime_type_kind, } ++p; - go_assert(p->is_field_name("zero")); - Expression* z = Expression::make_var_reference(gogo->zero_value(this), bloc); - z = Expression::make_unary(OPERATOR_AND, z, bloc); - Type* void_type = Type::make_void_type(); - Type* unsafe_pointer_type = Type::make_pointer_type(void_type); - z = Expression::make_cast(unsafe_pointer_type, z, bloc); - vals->push_back(z); - - ++p; go_assert(p == fields->end()); return Expression::make_struct_composite_literal(td_type, vals, bloc); |