Commit 761bd333 by Ian Lance Taylor

re PR go/61244 (gccgo: ICE in write_specific_type_functions [GoSmith])

	PR go/61244
compiler: Traverse type descriptor expressions.

From-SVN: r218715
parent 7b814b1a
...@@ -13657,6 +13657,9 @@ class Type_descriptor_expression : public Expression ...@@ -13657,6 +13657,9 @@ class Type_descriptor_expression : public Expression
{ } { }
protected: protected:
int
do_traverse(Traverse*);
Type* Type*
do_type() do_type()
{ return Type::make_type_descriptor_ptr_type(); } { return Type::make_type_descriptor_ptr_type(); }
...@@ -13688,6 +13691,14 @@ class Type_descriptor_expression : public Expression ...@@ -13688,6 +13691,14 @@ class Type_descriptor_expression : public Expression
Type* type_; 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. // Dump ast representation for a type descriptor expression.
void void
......
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