From d8a5e488d5a4df076006e84e2ad3e31b74501e13 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Thu, 7 Jun 2012 08:06:08 +0000 Subject: compiler: Fix taking address of field of local variable. From-SVN: r188299 --- gcc/go/gofrontend/expressions.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gcc/go') diff --git a/gcc/go/gofrontend/expressions.h b/gcc/go/gofrontend/expressions.h index d58e6c5..156cf3c 100644 --- a/gcc/go/gofrontend/expressions.h +++ b/gcc/go/gofrontend/expressions.h @@ -1888,6 +1888,10 @@ class Field_reference_expression : public Expression do_is_addressable() const { return this->expr_->is_addressable(); } + void + do_address_taken(bool escapes) + { this->expr_->address_taken(escapes); } + tree do_get_tree(Translate_context*); -- cgit v1.1