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:
Ian Lance Taylor 2014-12-14 00:55:01 +00:00
parent 7b814b1aa5
commit 761bd33348

View File

@ -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