From 7a48377442b6363ee83b7b63314a95e2cbd5a491 Mon Sep 17 00:00:00 2001 From: "Wolfgang (Blub) Bumiller" Date: Wed, 2 May 2012 18:25:59 +0200 Subject: [PATCH] for ast_value_codegen this should be enough, since the actual generation happens in other functions --- ast.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) -- 2.39.2