Commit cb659277 authored by dbarbera's avatar dbarbera
Browse files

Extended inner procedure generation

parent feb5b330
......@@ -1275,7 +1275,14 @@ def _inner_procedure(proc):
g.builder =
for name, (ty, expr) in proc.variables.viewitems():
raise NotImplementedError
var_ty = generate_type(ty)
var_ptr = g.builder.alloca(var_ty)
g.scope.define(name, var_ptr)
if expr:
expr_val = expression(expr)
generate_assign(var_ptr, expr_val)
else:, var_ptr)
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