ast_ternary_codegen: use codegen_outpu_type

This commit is contained in:
Wolfgang (Blub) Bumiller 2012-12-04 14:11:49 +01:00
parent 0dfd3136e5
commit 0c8bacd134

2
ast.c
View file

@ -2346,6 +2346,8 @@ bool ast_ternary_codegen(ast_ternary *self, ast_function *func, bool lvalue, ir_
self->expression.outr = ir_phi_value(phi);
*out = self->expression.outr;
codegen_output_type(self, *out);
return true;
}