diff options
author | Philip Herron <herron.philip@googlemail.com> | 2020-05-15 18:19:15 +0100 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2020-11-28 19:11:23 +0000 |
commit | 0a75153ea0d821b98da7205c5de3eb088e059587 (patch) | |
tree | fb29d6db9312f0028da69a4feb9f5e2aff65e7db /gcc | |
parent | b7eef6648bb0a4f94388a271c72a60ebb5ae21fe (diff) | |
download | gcc-0a75153ea0d821b98da7205c5de3eb088e059587.zip gcc-0a75153ea0d821b98da7205c5de3eb088e059587.tar.gz gcc-0a75153ea0d821b98da7205c5de3eb088e059587.tar.bz2 |
need access to the expression for analysis
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/rust/ast/rust-stmt.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/rust/ast/rust-stmt.h b/gcc/rust/ast/rust-stmt.h index 49c94fd..f1b09a7 100644 --- a/gcc/rust/ast/rust-stmt.h +++ b/gcc/rust/ast/rust-stmt.h @@ -147,6 +147,7 @@ protected: * difficulties, can only be guaranteed to hold an expression). */ class ExprStmtWithoutBlock : public ExprStmt { +public: // ExprWithoutBlock* expr; /* HACK: cannot ensure type safety of ExprWithoutBlock due to Pratt parsing, * so have to store more general type of Expr. FIXME: fix this issue somehow @@ -154,7 +155,6 @@ class ExprStmtWithoutBlock : public ExprStmt //::std::unique_ptr<ExprWithoutBlock> expr; ::std::unique_ptr<Expr> expr; -public: /*~ExpressionStatementWithoutBlock() { delete expr; }*/ @@ -201,10 +201,10 @@ protected: // Statement containing an expression with a block class ExprStmtWithBlock : public ExprStmt { +public: // ExprWithBlock* expr; ::std::unique_ptr<ExprWithBlock> expr; -public: /*~ExpressionStatementWithBlock() { delete expr; }*/ |