mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-03-22 02:31:28 +00:00
Add an error output in the ast where I missed one (there are probably more places which need one)
This commit is contained in:
parent
39f37262db
commit
a74b26a9bc
1 changed files with 5 additions and 1 deletions
6
ast.c
6
ast.c
|
@ -1145,8 +1145,12 @@ bool ast_entfield_codegen(ast_entfield *self, ast_function *func, bool lvalue, i
|
|||
*out = ir_block_create_load_from_ent(func->curblock, ast_function_label(func, "efv"),
|
||||
ent, field, self->expression.vtype);
|
||||
}
|
||||
if (!*out)
|
||||
if (!*out) {
|
||||
asterror(ast_ctx(self), "failed to create %s instruction (output type %s)",
|
||||
(lvalue ? "ADDRESS" : "FIELD"),
|
||||
type_name[self->expression.vtype]);
|
||||
return false;
|
||||
}
|
||||
|
||||
if (lvalue)
|
||||
self->expression.outl = *out;
|
||||
|
|
Loading…
Reference in a new issue