Commit e9f6a1ce authored by dbarbera's avatar dbarbera
Browse files

Fix if_then_else expression generation

parent e3ef5b41
......@@ -1448,7 +1448,7 @@ def _if_then_else(ifthen):
ctx.builder.position_at_end(end_block)
return ctx.builder.load(res_ptr)
return res_ptr if is_struct_ptr(res_ptr) else ctx.builder.load(res_ptr)
@expression.register(ogAST.PrimSequence)
......
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