From f6fb680bd7bdb81138e989e1ba0147844a5b2c72 Mon Sep 17 00:00:00 2001 From: edg-l Date: Tue, 12 Mar 2024 11:09:57 +0000 Subject: [PATCH] deploy: a70924b81b2df8c46d57f80d220a6afc55451e4f --- src/edlang_codegen_llvm/codegen.rs.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/edlang_codegen_llvm/codegen.rs.html b/src/edlang_codegen_llvm/codegen.rs.html index fcd5cc516..d0b0cf636 100644 --- a/src/edlang_codegen_llvm/codegen.rs.html +++ b/src/edlang_codegen_llvm/codegen.rs.html @@ -2513,15 +2513,15 @@ for proj in &place.projection { match proj { ir::PlaceElem::Deref => { - ptr = ctx - .builder - .build_load(compile_basic_type(ctx, &local_ty), ptr, "deref")? - .into_pointer_value(); local_ty = match local_ty.kind { ir::TypeKind::Ptr(_, inner) => *inner, ir::TypeKind::Ref(_, inner) => *inner, _ => unreachable!(), - } + }; + ptr = ctx + .builder + .build_load(compile_basic_type(ctx, &local_ty), ptr, "deref")? + .into_pointer_value(); } ir::PlaceElem::Field { .. } => todo!(), ir::PlaceElem::Index { .. } => todo!(),