From: Wolfgang (Blub) Bumiller Date: Wed, 2 May 2012 16:25:59 +0000 (+0200) Subject: for ast_value_codegen this should be enough, since the actual generation happens... X-Git-Tag: 0.1-rc1~522 X-Git-Url: https://git.xonotic.org/?a=commitdiff_plain;h=7a48377442b6363ee83b7b63314a95e2cbd5a491;p=xonotic%2Fgmqcc.git for ast_value_codegen this should be enough, since the actual generation happens in other functions --- diff --git a/ast.c b/ast.c index 63787cd..af64e08 100644 --- a/ast.c +++ b/ast.c @@ -309,7 +309,10 @@ bool ast_value_codegen(ast_value *self, ast_function *func, bool lvalue, ir_valu * and the ast-user should take care of ast_global_codegen to be used * on all the globals. */ - return false; + if (!self->ir_v) + return false; + *out = self->ir_v; + return true; } bool ast_global_codegen(ast_value *self, ir_builder *ir)