diff options
author | Philip Herron <philip.herron@embecosm.com> | 2022-02-11 10:02:46 +0000 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2022-02-11 10:02:46 +0000 |
commit | df2dbbc0343afcca95d515d8843612b0334bc17b (patch) | |
tree | e762da6a57371929a844d3b526cca7d2ed84f345 /gcc/rust/backend/rust-compile-expr.cc | |
parent | b2aa172ff69591452e3566c105f2a4cd8450eab5 (diff) | |
download | gcc-df2dbbc0343afcca95d515d8843612b0334bc17b.zip gcc-df2dbbc0343afcca95d515d8843612b0334bc17b.tar.gz gcc-df2dbbc0343afcca95d515d8843612b0334bc17b.tar.bz2 |
Remove error_mark_node wrappers from backend proxy class.
Diffstat (limited to 'gcc/rust/backend/rust-compile-expr.cc')
-rw-r--r-- | gcc/rust/backend/rust-compile-expr.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/rust/backend/rust-compile-expr.cc b/gcc/rust/backend/rust-compile-expr.cc index ab560e8..a592e35 100644 --- a/gcc/rust/backend/rust-compile-expr.cc +++ b/gcc/rust/backend/rust-compile-expr.cc @@ -205,7 +205,7 @@ CompileExpr::visit (HIR::MatchExpr &expr) expr.get_scrutinee_expr ()->get_mappings ().get_hirid (), &scrutinee_expr_tyty)) { - translated = ctx->get_backend ()->error_expression (); + translated = error_mark_node; return; } @@ -221,7 +221,7 @@ CompileExpr::visit (HIR::MatchExpr &expr) if (!ctx->get_tyctx ()->lookup_type (expr.get_mappings ().get_hirid (), &expr_tyty)) { - translated = ctx->get_backend ()->error_expression (); + translated = error_mark_node; return; } @@ -644,7 +644,7 @@ CompileExpr::compile_dyn_dispatch_call (const TyTy::DynamicObjectType *dyn, } if (ref == nullptr) - return ctx->get_backend ()->error_expression (); + return error_mark_node; // get any indirection sorted out if (receiver->get_kind () == TyTy::TypeKind::REF) |