diff options
Diffstat (limited to 'gcc/rust/ast/rust-ast-builder.cc')
-rw-r--r-- | gcc/rust/ast/rust-ast-builder.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/rust/ast/rust-ast-builder.cc b/gcc/rust/ast/rust-ast-builder.cc index b630cfa..e2d3eea 100644 --- a/gcc/rust/ast/rust-ast-builder.cc +++ b/gcc/rust/ast/rust-ast-builder.cc @@ -85,8 +85,9 @@ std::unique_ptr<Expr> AstBuilder::block (std::vector<std::unique_ptr<Stmt>> &&stmts, std::unique_ptr<Expr> &&tail_expr) { - return std::unique_ptr<Expr> ( - new BlockExpr (std::move (stmts), std::move (tail_expr), {}, {}, loc, loc)); + return std::unique_ptr<Expr> (new BlockExpr (std::move (stmts), + std::move (tail_expr), {}, {}, + LoopLabel::error (), loc, loc)); } std::unique_ptr<Stmt> |