aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/ast/rust-stmt.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/rust/ast/rust-stmt.h')
-rw-r--r--gcc/rust/ast/rust-stmt.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/rust/ast/rust-stmt.h b/gcc/rust/ast/rust-stmt.h
index 6e2113a..d2cace6 100644
--- a/gcc/rust/ast/rust-stmt.h
+++ b/gcc/rust/ast/rust-stmt.h
@@ -201,8 +201,9 @@ public:
std::vector<LetStmt *> locals;
- ExprStmt (std::unique_ptr<Expr> expr, Location locus, bool semicolon_followed)
- : expr (expr->to_stmt ()), locus (locus),
+ ExprStmt (std::unique_ptr<Expr> &&expr, Location locus,
+ bool semicolon_followed)
+ : expr (std::move (expr)), locus (locus),
semicolon_followed (semicolon_followed)
{}