diff options
Diffstat (limited to 'opcodes/cgen-opc.in')
-rw-r--r-- | opcodes/cgen-opc.in | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/opcodes/cgen-opc.in b/opcodes/cgen-opc.in index af51ef2..9679b04 100644 --- a/opcodes/cgen-opc.in +++ b/opcodes/cgen-opc.in @@ -143,7 +143,8 @@ const CGEN_INSN * return NULL; for (i = 0, opinst = CGEN_INSN_OPERANDS (insn); - CGEN_OPERAND_INSTANCE_TYPE (opinst) != CGEN_OPERAND_INSTANCE_END; + opinst != NULL + && CGEN_OPERAND_INSTANCE_TYPE (opinst) != CGEN_OPERAND_INSTANCE_END; ++i, ++opinst) { const CGEN_OPERAND *op = CGEN_OPERAND_INSTANCE_OPERAND (opinst); |