From a7bc0199a67337bbc110da39e9cffe37afbd1f69 Mon Sep 17 00:00:00 2001 From: Edgar Date: Thu, 18 Jan 2024 15:57:09 +0100 Subject: [PATCH] better --- crates/concrete_codegen_mlir/src/codegen.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/concrete_codegen_mlir/src/codegen.rs b/crates/concrete_codegen_mlir/src/codegen.rs index ce79401..0db203f 100644 --- a/crates/concrete_codegen_mlir/src/codegen.rs +++ b/crates/concrete_codegen_mlir/src/codegen.rs @@ -898,7 +898,7 @@ fn compile_path_op<'ctx, 'parent: 'ctx>( let local = scope_ctx .locals .get(&path.first.name) - .expect("local not found") + .unwrap_or_else(|| panic!("local {} not found", path.first.name)) .clone(); let location = get_location(context, session, path.first.span.from);