aboutsummaryrefslogtreecommitdiff
path: root/gcc/go/gofrontend/expressions.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2013-01-29 00:28:09 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2013-01-29 00:28:09 +0000
commit12ab9655524cede6f3c27ce1aa737b406f54917c (patch)
tree3116a655f079f6c96c8bc21c712270ddc3f3cf5c /gcc/go/gofrontend/expressions.h
parent670c28f56201211c011c7bd7e633db4d2eb4bce1 (diff)
downloadgcc-12ab9655524cede6f3c27ce1aa737b406f54917c.zip
gcc-12ab9655524cede6f3c27ce1aa737b406f54917c.tar.gz
gcc-12ab9655524cede6f3c27ce1aa737b406f54917c.tar.bz2
compiler: Correct initialization order determination.
From-SVN: r195526
Diffstat (limited to 'gcc/go/gofrontend/expressions.h')
-rw-r--r--gcc/go/gofrontend/expressions.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/go/gofrontend/expressions.h b/gcc/go/gofrontend/expressions.h
index 152c223..af178de 100644
--- a/gcc/go/gofrontend/expressions.h
+++ b/gcc/go/gofrontend/expressions.h
@@ -983,6 +983,11 @@ class Temporary_reference_expression : public Expression
statement_(statement), is_lvalue_(false)
{ }
+ // The temporary that this expression refers to.
+ Temporary_statement*
+ statement() const
+ { return this->statement_; }
+
// Indicate that this reference appears on the left hand side of an
// assignment statement.
void