mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-27 06:02:22 +00:00
for ast_value_codegen this should be enough, since the actual generation happens in other functions
This commit is contained in:
parent
1e0a688bc5
commit
7a48377442
1 changed files with 4 additions and 1 deletions
5
ast.c
5
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)
|
||||
|
|
Loading…
Reference in a new issue