From: Jakub Jelinek Date: Wed, 17 Sep 2008 21:26:45 +0000 (+0200) Subject: tree.c (protected_set_expr_location): Don't unnecessarily check for error_mark_node. X-Git-Tag: releases/gcc-4.4.0~2402 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6847a7549cc909ebb292eeb6b549ca4faf013874;p=thirdparty%2Fgcc.git tree.c (protected_set_expr_location): Don't unnecessarily check for error_mark_node. * tree.c (protected_set_expr_location): Don't unnecessarily check for error_mark_node. From-SVN: r140429 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 814a79e23e6c..67c3c80e2f2d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2008-09-17 Jakub Jelinek + + * tree.c (protected_set_expr_location): Don't unnecessarily + check for error_mark_node. + 2008-09-17 Art Haas * ipa-reference.c (analyze_function): Declare step only if diff --git a/gcc/tree.c b/gcc/tree.c index 71267bdb82c5..ab14286f7314 100644 --- a/gcc/tree.c +++ b/gcc/tree.c @@ -3584,7 +3584,7 @@ set_expr_locus (tree node, source_location *loc) void protected_set_expr_location (tree t, location_t loc) { - if (t && t != error_mark_node && CAN_HAVE_LOCATION_P (t)) + if (t && CAN_HAVE_LOCATION_P (t)) SET_EXPR_LOCATION (t, loc); }