[PATCH 1/2] gdb/linespec.c: simplify condition

Simon Marchi simon.marchi@polymtl.ca
Tue Dec 7 20:59:46 GMT 2021


On 2021-12-07 2:32 p.m., Tom Tromey wrote:
>>>>>> "Simon" == Simon Marchi via Gdb-patches <gdb-patches@sourceware.org> writes:
> 
> Simon> We can remove the empty check: if the vector has size 1, it is obviously
> Simon> not empty.  This code ended up like this because the empty check used to
> Simon> be a NULL check.
> 
> This one seems obvious.
> 
> Tom
> 

Thanks, I pushed this one, and I will look at the feedback for the second one a
bit later.

Simon


More information about the Gdb-patches mailing list