add_opcode was corrected to receive opcode_node pointer rather than just
the type variable