Re: [PATCH] Tiny cleanup for protected_set_expr_location

2014-09-12 Thread Jeff Law
On 09/12/14 14:52, Marek Polacek wrote: This is rather obvious. CAN_HAVE_LOCATION_P checks that the node is non-null, so no need to check for it in protected_set_expr_location too. Bootstrapped/regtested on x86_64-linux, ok for trunk? 2014-09-12 Marek Polacek * tree.c (protected_se

[PATCH] Tiny cleanup for protected_set_expr_location

2014-09-12 Thread Marek Polacek
This is rather obvious. CAN_HAVE_LOCATION_P checks that the node is non-null, so no need to check for it in protected_set_expr_location too. Bootstrapped/regtested on x86_64-linux, ok for trunk? 2014-09-12 Marek Polacek * tree.c (protected_set_expr_location): Don't check whether T is