mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-28 06:32:44 +00:00
error when trying to pass a TYPE_NOEXPR value to ir_instr_op
This commit is contained in:
parent
69cecb74df
commit
5958687795
1 changed files with 5 additions and 0 deletions
5
ir.c
5
ir.c
|
@ -1032,6 +1032,11 @@ static void ir_instr_delete(ir_instr *self)
|
||||||
|
|
||||||
static bool ir_instr_op(ir_instr *self, int op, ir_value *v, bool writing)
|
static bool ir_instr_op(ir_instr *self, int op, ir_value *v, bool writing)
|
||||||
{
|
{
|
||||||
|
if (v && v->vtype == TYPE_NOEXPR) {
|
||||||
|
irerror(self->context, "tried to use a NOEXPR value");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (self->_ops[op]) {
|
if (self->_ops[op]) {
|
||||||
size_t idx;
|
size_t idx;
|
||||||
if (writing && vec_ir_instr_find(self->_ops[op]->writes, self, &idx))
|
if (writing && vec_ir_instr_find(self->_ops[op]->writes, self, &idx))
|
||||||
|
|
Loading…
Reference in a new issue