aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-compile-base.h
diff options
context:
space:
mode:
authorPhilip Herron <philip.herron@embecosm.com>2022-04-29 15:27:53 +0100
committerPhilip Herron <philip.herron@embecosm.com>2022-04-30 13:31:12 +0100
commit44c058c30dd1d36f87c36f2c487355a5736d0afc (patch)
tree9414376dc8e452c4bd69ec5a776daeb25db979c8 /gcc/rust/backend/rust-compile-base.h
parentf38bf60c3ac7f039db5ff5c7c0587325097892c8 (diff)
downloadgcc-44c058c30dd1d36f87c36f2c487355a5736d0afc.zip
gcc-44c058c30dd1d36f87c36f2c487355a5736d0afc.tar.gz
gcc-44c058c30dd1d36f87c36f2c487355a5736d0afc.tar.bz2
Fix address expression to respect reference/pointer types
Diffstat (limited to 'gcc/rust/backend/rust-compile-base.h')
-rw-r--r--gcc/rust/backend/rust-compile-base.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/rust/backend/rust-compile-base.h b/gcc/rust/backend/rust-compile-base.h
index c09c562..d58fd19 100644
--- a/gcc/rust/backend/rust-compile-base.h
+++ b/gcc/rust/backend/rust-compile-base.h
@@ -98,7 +98,7 @@ protected:
static void setup_abi_options (tree fndecl, ABI abi);
- static tree address_expression (tree, Location);
+ static tree address_expression (tree expr, tree ptrtype, Location locus);
static bool mark_addressable (tree, Location);