aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/ast/rust-stmt.h
diff options
context:
space:
mode:
authorPhilip Herron <herron.philip@googlemail.com>2020-05-21 17:53:24 +0100
committerPhilip Herron <philip.herron@embecosm.com>2020-11-28 21:13:15 +0000
commitd3cb8c3cd9278693db8737614bdc2deaa6b5d3cc (patch)
treed2a2999a6daa188453f7b21649c608d7c5aa60e7 /gcc/rust/ast/rust-stmt.h
parentf641587ed0683d6ff2479f59576f4c95eac2bf61 (diff)
downloadgcc-d3cb8c3cd9278693db8737614bdc2deaa6b5d3cc.zip
gcc-d3cb8c3cd9278693db8737614bdc2deaa6b5d3cc.tar.gz
gcc-d3cb8c3cd9278693db8737614bdc2deaa6b5d3cc.tar.bz2
We need to analyse and store the locals per block for compilation
Diffstat (limited to 'gcc/rust/ast/rust-stmt.h')
-rw-r--r--gcc/rust/ast/rust-stmt.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/rust/ast/rust-stmt.h b/gcc/rust/ast/rust-stmt.h
index f19ba2c..addb5f9 100644
--- a/gcc/rust/ast/rust-stmt.h
+++ b/gcc/rust/ast/rust-stmt.h
@@ -213,6 +213,8 @@ public:
::std::string as_string () const;
+ ::std::vector<LetStmt *> locals;
+
ExprStmtWithBlock (::std::unique_ptr<ExprWithBlock> expr, Location locus)
: ExprStmt (locus), expr (::std::move (expr))
{}