From 2cb725b7ac4d2a6c4017f99fa3a1e57e019acb91 Mon Sep 17 00:00:00 2001 From: ychenfo Date: Mon, 16 May 2022 02:50:42 +0800 Subject: [PATCH] nac3artiq: correct global name for const object --- nac3artiq/src/symbol_resolver.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nac3artiq/src/symbol_resolver.rs b/nac3artiq/src/symbol_resolver.rs index 5378c8b9..ff4e715b 100644 --- a/nac3artiq/src/symbol_resolver.rs +++ b/nac3artiq/src/symbol_resolver.rs @@ -99,7 +99,7 @@ impl StaticValue for PythonValue { _: &mut dyn CodeGenerator, ) -> BasicValueEnum<'ctx> { ctx.module - .get_global(self.id.to_string().as_str()) + .get_global(format!("{}_const", self.id).as_str()) .map(|val| val.as_pointer_value().into()) .unwrap_or_else(|| { Python::with_gil(|py| -> PyResult> {