diff options
author | David Faust <david.faust@oracle.com> | 2021-11-15 11:24:40 -0800 |
---|---|---|
committer | David Faust <david.faust@oracle.com> | 2021-11-16 13:10:41 -0800 |
commit | 553e88f1dd4b4794334ee6d1861c185b92361a0b (patch) | |
tree | 62075b93b07f3dce20b0c0afa1bc8024bb1cac89 /gcc/rust/backend/rust-compile-expr.cc | |
parent | b52a68d2d8676ea378f0fbb6726639cc80402542 (diff) | |
download | gcc-553e88f1dd4b4794334ee6d1861c185b92361a0b.zip gcc-553e88f1dd4b4794334ee6d1861c185b92361a0b.tar.gz gcc-553e88f1dd4b4794334ee6d1861c185b92361a0b.tar.bz2 |
Replace Bstatement with GCC tree
Diffstat (limited to 'gcc/rust/backend/rust-compile-expr.cc')
-rw-r--r-- | gcc/rust/backend/rust-compile-expr.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/rust/backend/rust-compile-expr.cc b/gcc/rust/backend/rust-compile-expr.cc index d475ec4..8786702 100644 --- a/gcc/rust/backend/rust-compile-expr.cc +++ b/gcc/rust/backend/rust-compile-expr.cc @@ -86,7 +86,7 @@ CompileExpr::visit (HIR::CompoundAssignmentExpr &expr) auto operator_expr = ctx->get_backend ()->arithmetic_or_logical_expression (op, lhs, rhs, expr.get_locus ()); - Bstatement *assignment + tree assignment = ctx->get_backend ()->assignment_statement (fn.fndecl, lhs, operator_expr, expr.get_locus ()); ctx->add_statement (assignment); @@ -178,7 +178,7 @@ CompileExpr::compile_dyn_dispatch_call (const TyTy::DynamicObjectType *dyn, fncontext fnctx = ctx->peek_fn (); Bblock *enclosing_scope = ctx->peek_enclosing_scope (); bool is_address_taken = false; - Bstatement *ret_var_stmt = nullptr; + tree ret_var_stmt = NULL_TREE; Bvariable *fn_convert_expr_tmp = ctx->get_backend ()->temporary_variable (fnctx.fndecl, enclosing_scope, expected_fntype, fn_convert_expr, |