diff options
Diffstat (limited to 'opcodes/lm32-desc.c')
-rw-r--r-- | opcodes/lm32-desc.c | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/opcodes/lm32-desc.c b/opcodes/lm32-desc.c index f3db0dd..7470c3f 100644 --- a/opcodes/lm32-desc.c +++ b/opcodes/lm32-desc.c @@ -1162,18 +1162,10 @@ lm32_cgen_cpu_close (CGEN_CPU_DESC cd) regfree (CGEN_INSN_RX (insns)); } - if (cd->macro_insn_table.init_entries) - free ((CGEN_INSN *) cd->macro_insn_table.init_entries); - - if (cd->insn_table.init_entries) - free ((CGEN_INSN *) cd->insn_table.init_entries); - - if (cd->hw_table.entries) - free ((CGEN_HW_ENTRY *) cd->hw_table.entries); - - if (cd->operand_table.entries) - free ((CGEN_HW_ENTRY *) cd->operand_table.entries); - + free ((CGEN_INSN *) cd->macro_insn_table.init_entries); + free ((CGEN_INSN *) cd->insn_table.init_entries); + free ((CGEN_HW_ENTRY *) cd->hw_table.entries); + free ((CGEN_HW_ENTRY *) cd->operand_table.entries); free (cd); } |