for ast_value_codegen this should be enough, since the actual generation happens in other functions

This commit is contained in:
Wolfgang (Blub) Bumiller 2012-05-02 18:25:59 +02:00
parent 1e0a688bc5
commit 7a48377442

3
ast.c
View file

@ -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.
*/
if (!self->ir_v)
return false;
*out = self->ir_v;
return true;
}
bool ast_global_codegen(ast_value *self, ir_builder *ir)