summaryrefslogtreecommitdiff
path: root/gcc/go/gofrontend/statements.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/go/gofrontend/statements.h')
-rw-r--r--gcc/go/gofrontend/statements.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/go/gofrontend/statements.h b/gcc/go/gofrontend/statements.h
index 5bbfd373669..c5995710792 100644
--- a/gcc/go/gofrontend/statements.h
+++ b/gcc/go/gofrontend/statements.h
@@ -490,6 +490,11 @@ class Temporary_statement : public Statement
Type*
type() const;
+ // Return the initializer if there is one.
+ Expression*
+ init() const
+ { return this->init_; }
+
// Note that it is OK for this statement to set hidden fields.
void
set_hidden_fields_are_ok()