]> de.git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
ast_ternary_codegen: use codegen_outpu_type
authorWolfgang (Blub) Bumiller <blub@speed.at>
Tue, 4 Dec 2012 13:11:49 +0000 (14:11 +0100)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Tue, 4 Dec 2012 13:11:49 +0000 (14:11 +0100)
ast.c

diff --git a/ast.c b/ast.c
index 31df700d2b0e0e1e21235bc9f5380786270af9b7..96fdf65382853a97a1df5ad89ac953bf1a3d1612 100644 (file)
--- a/ast.c
+++ b/ast.c
@@ -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;
 }