aboutsummaryrefslogtreecommitdiff
path: root/gcc/go/gofrontend/statements.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2011-02-23 04:54:27 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2011-02-23 04:54:27 +0000
commitb68a9b10c8081a0e4b4811bbbbfa39749d167c09 (patch)
tree55e93bd6fa4aa35ab44db741fb1a570be5d4ab3a /gcc/go/gofrontend/statements.cc
parent7fcf46f509414d97aea64a10f441781ad8c4b9de (diff)
downloadgcc-b68a9b10c8081a0e4b4811bbbbfa39749d167c09.zip
gcc-b68a9b10c8081a0e4b4811bbbbfa39749d167c09.tar.gz
gcc-b68a9b10c8081a0e4b4811bbbbfa39749d167c09.tar.bz2
Fix missing type traversals.
From-SVN: r170427
Diffstat (limited to 'gcc/go/gofrontend/statements.cc')
-rw-r--r--gcc/go/gofrontend/statements.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/go/gofrontend/statements.cc b/gcc/go/gofrontend/statements.cc
index 99ed665..45e45a3 100644
--- a/gcc/go/gofrontend/statements.cc
+++ b/gcc/go/gofrontend/statements.cc
@@ -318,6 +318,9 @@ Temporary_statement::get_decl() const
int
Temporary_statement::do_traverse(Traverse* traverse)
{
+ if (this->type_ != NULL
+ && this->traverse_type(traverse, this->type_) == TRAVERSE_EXIT)
+ return TRAVERSE_EXIT;
if (this->init_ == NULL)
return TRAVERSE_CONTINUE;
else