From 59586877950c8b7138063fa22fc4740864986fa3 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Mon, 26 Aug 2013 10:23:20 +0200 Subject: [PATCH] error when trying to pass a TYPE_NOEXPR value to ir_instr_op --- ir.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ir.c b/ir.c index ec45a8f..f48d83b 100644 --- a/ir.c +++ b/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) { + if (v && v->vtype == TYPE_NOEXPR) { + irerror(self->context, "tried to use a NOEXPR value"); + return false; + } + if (self->_ops[op]) { size_t idx; if (writing && vec_ir_instr_find(self->_ops[op]->writes, self, &idx)) -- 2.39.2