make add_shallow_copy_of_reg_note take an rtx_insn *