Source

pypy / pypy / rpython / raddress.py

Diff from to

File pypy/rpython/raddress.py

 class __extend__(pairtype(TypedAddressAccessRepr, IntegerRepr)):
 
     def rtype_getitem((r_acc, r_int), hop):
-        c_type = hop.inputconst(lltype.Void, r_acc.type)
         v_addr, v_offs = hop.inputargs(hop.args_r[0], lltype.Signed)
         c_size = hop.inputconst(lltype.Signed, sizeof(r_acc.type))
         v_offs_mult = hop.genop('int_mul', [v_offs, c_size],
                                 resulttype=lltype.Signed)
-        return hop.genop('raw_load', [v_addr, c_type, v_offs_mult],
+        return hop.genop('raw_load', [v_addr, v_offs_mult],
                          resulttype = r_acc.type)
 
     def rtype_setitem((r_acc, r_int), hop):
-        c_type = hop.inputconst(lltype.Void, r_acc.type)
         v_addr, v_offs, v_value = hop.inputargs(hop.args_r[0], lltype.Signed, r_acc.type)
         c_size = hop.inputconst(lltype.Signed, sizeof(r_acc.type))
         v_offs_mult = hop.genop('int_mul', [v_offs, c_size],
                                 resulttype=lltype.Signed)
-        return hop.genop('raw_store', [v_addr, c_type, v_offs_mult, v_value])
+        return hop.genop('raw_store', [v_addr, v_offs_mult, v_value])
 
 
 class __extend__(pairtype(AddressRepr, IntegerRepr)):