mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-20 04:50:25 +08:00
re PR go/61244 (gccgo: ICE in write_specific_type_functions [GoSmith])
PR go/61244 compiler: Traverse type descriptor expressions. From-SVN: r218715
This commit is contained in:
parent
7b814b1aa5
commit
761bd33348
@ -13657,6 +13657,9 @@ class Type_descriptor_expression : public Expression
|
||||
{ }
|
||||
|
||||
protected:
|
||||
int
|
||||
do_traverse(Traverse*);
|
||||
|
||||
Type*
|
||||
do_type()
|
||||
{ return Type::make_type_descriptor_ptr_type(); }
|
||||
@ -13688,6 +13691,14 @@ class Type_descriptor_expression : public Expression
|
||||
Type* type_;
|
||||
};
|
||||
|
||||
int
|
||||
Type_descriptor_expression::do_traverse(Traverse* traverse)
|
||||
{
|
||||
if (Type::traverse(this->type_, traverse) == TRAVERSE_EXIT)
|
||||
return TRAVERSE_EXIT;
|
||||
return TRAVERSE_CONTINUE;
|
||||
}
|
||||
|
||||
// Dump ast representation for a type descriptor expression.
|
||||
|
||||
void
|
||||
|
Loading…
x
Reference in New Issue
Block a user