type_t *const points_to = skip_typeref(pointer_type->points_to);
unsigned elem_size = get_type_size_const(points_to);
+ value = create_conv(dbgi, value, mode_int);
+
/* gcc extension: allow arithmetic with void * and function * */
if ((elem_size == 0 && is_type_atomic(points_to, ATOMIC_TYPE_VOID)) ||
is_type_function(points_to)) {
if (elem_size == 1)
return value;
- value = create_conv(dbgi, value, mode_int);
ir_node *const cnst = new_Const_long(mode_int, (long)elem_size);
ir_node *const mul = new_d_Mul(dbgi, value, cnst, mode_int);
return mul;