forked from M-Labs/nac3
nac3artiq: correct global name for const object
This commit is contained in:
parent
b9259b1907
commit
2cb725b7ac
|
@ -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<BasicValueEnum<'ctx>> {
|
||||
|
|
Loading…
Reference in New Issue