Commit 6e4a667c authored by dbarbera's avatar dbarbera
Browse files

Fixed var/field path generation

parent a047abca
......@@ -363,7 +363,7 @@ def _prim_path(prim):
var_ptr = g.module.get_global_variable_named(str(prim.value.pop(0)).lower())
if not prim.value:
return var_ptr
return g.builder.load(var_ptr)
zero_cons = core.Constant.int(g.i32, 0)
......@@ -377,7 +377,7 @@ def _prim_path(prim):
else:
raise NotImplementedError
return var_ptr
return g.builder.load(var_ptr)
@expression.register(ogAST.ExprPlus)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment