From: ian Date: Sun, 14 Dec 2014 00:55:01 +0000 (+0000) Subject: PR go/61244 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4b6861868d3115333607c8277b04a566a77c5d95;p=thirdparty%2Fgcc.git PR go/61244 compiler: Traverse type descriptor expressions. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@218715 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/go/gofrontend/expressions.cc b/gcc/go/gofrontend/expressions.cc index 4d07c223b34f..21f6cd6c3d89 100644 --- a/gcc/go/gofrontend/expressions.cc +++ b/gcc/go/gofrontend/expressions.cc @@ -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