Re: [PATCH] [RFC] Fix ptype bug actually exercised in userdef.exp

Pedro Alves
2013-02-13T20:35:59Z

On 02/13/2013 08:31 PM, Pedro Alves wrote:
> + if (TYPE_CODE (type) == TYPE_CODE_REF)
> + return value_zero (lookup_pointer_type (TYPE_TARGET_TYPE (type)), not_lval);
> + else if (VALUE_LVAL (x) == lval_memory || value_must_coerce_to_target (x))
> + return value_zero (lookup_pointer_type (value_type (x)), not_lval);
> else

Whoops, too long lines. Pretend there's a newline before each of those
"not_lval", like in the present code...

--
Pedro Alves