aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJakub Dupak <dev@jakubdupak.com>2023-11-02 13:31:17 +0100
committerArthur Cohen <arthur.cohen@embecosm.com>2024-01-16 19:09:35 +0100
commitf61184ee8cbee30392f43a2ffd7a3dca56282162 (patch)
treefbc58ca2f112c3aae5d73e7e5d0bdaef6a41f2d6 /gcc
parentda87ef4d692b348be41c082eabb37f21af73f392 (diff)
downloadgcc-f61184ee8cbee30392f43a2ffd7a3dca56282162.zip
gcc-f61184ee8cbee30392f43a2ffd7a3dca56282162.tar.gz
gcc-f61184ee8cbee30392f43a2ffd7a3dca56282162.tar.bz2
gccrs: HIR: fix typo
gcc/rust/ChangeLog: * hir/rust-ast-lower-expr.cc (ASTLoweringExpr::visit): Fix typo. Signed-off-by: Jakub Dupak <dev@jakubdupak.com>
Diffstat (limited to 'gcc')
-rw-r--r--gcc/rust/hir/rust-ast-lower-expr.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/rust/hir/rust-ast-lower-expr.cc b/gcc/rust/hir/rust-ast-lower-expr.cc
index 80790f5..c1ba87ec 100644
--- a/gcc/rust/hir/rust-ast-lower-expr.cc
+++ b/gcc/rust/hir/rust-ast-lower-expr.cc
@@ -632,7 +632,7 @@ ASTLoweringExpr::visit (AST::BorrowExpr &expr)
mappings->get_next_hir_id (crate_num),
UNKNOWN_LOCAL_DEFID);
- HIR::BorrowExpr *borrow_expr
+ auto *borrow_expr
= new HIR::BorrowExpr (mapping, std::unique_ptr<HIR::Expr> (borrow_lvalue),
expr.get_is_mut () ? Mutability::Mut
: Mutability::Imm,
@@ -640,8 +640,8 @@ ASTLoweringExpr::visit (AST::BorrowExpr &expr)
if (expr.get_is_double_borrow ())
{
- NodeId artifical_bouble_borrow_id = mappings->get_next_node_id ();
- Analysis::NodeMapping mapping (crate_num, artifical_bouble_borrow_id,
+ NodeId artificial_double_borrow_id = mappings->get_next_node_id ();
+ Analysis::NodeMapping mapping (crate_num, artificial_double_borrow_id,
mappings->get_next_hir_id (crate_num),
UNKNOWN_LOCAL_DEFID);