aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-compile-stmt.h
diff options
context:
space:
mode:
authorDavid Faust <david.faust@oracle.com>2021-11-15 11:24:40 -0800
committerDavid Faust <david.faust@oracle.com>2021-11-16 13:10:41 -0800
commit553e88f1dd4b4794334ee6d1861c185b92361a0b (patch)
tree62075b93b07f3dce20b0c0afa1bc8024bb1cac89 /gcc/rust/backend/rust-compile-stmt.h
parentb52a68d2d8676ea378f0fbb6726639cc80402542 (diff)
downloadgcc-553e88f1dd4b4794334ee6d1861c185b92361a0b.zip
gcc-553e88f1dd4b4794334ee6d1861c185b92361a0b.tar.gz
gcc-553e88f1dd4b4794334ee6d1861c185b92361a0b.tar.bz2
Replace Bstatement with GCC tree
Diffstat (limited to 'gcc/rust/backend/rust-compile-stmt.h')
-rw-r--r--gcc/rust/backend/rust-compile-stmt.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/rust/backend/rust-compile-stmt.h b/gcc/rust/backend/rust-compile-stmt.h
index 604d9a5..f3ee69d 100644
--- a/gcc/rust/backend/rust-compile-stmt.h
+++ b/gcc/rust/backend/rust-compile-stmt.h
@@ -118,7 +118,7 @@ public:
auto fnctx = ctx->peek_fn ();
if (ty->is_unit ())
{
- Bstatement *expr_stmt
+ tree expr_stmt
= ctx->get_backend ()->expression_statement (fnctx.fndecl, init);
ctx->add_statement (expr_stmt);
}