]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
tree.c (protected_set_expr_location): Don't unnecessarily check for error_mark_node.
authorJakub Jelinek <jakub@redhat.com>
Wed, 17 Sep 2008 21:26:45 +0000 (23:26 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 17 Sep 2008 21:26:45 +0000 (23:26 +0200)
* tree.c (protected_set_expr_location): Don't unnecessarily
check for error_mark_node.

From-SVN: r140429

gcc/ChangeLog
gcc/tree.c

index 814a79e23e6cffd36701622b3343041983c7eba7..67c3c80e2f2d45ac7f1832569262177e9727199c 100644 (file)
@@ -1,3 +1,8 @@
+2008-09-17  Jakub Jelinek  <jakub@redhat.com>
+
+       * tree.c (protected_set_expr_location): Don't unnecessarily
+       check for error_mark_node.
+
 2008-09-17  Art Haas  <ahaas@impactweather.com>
 
        * ipa-reference.c (analyze_function): Declare step only if
index 71267bdb82c57ebd15c457ebc0d9c00e91b51e8e..ab14286f73145675712bead8c1ce0ffe45a7b14e 100644 (file)
@@ -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);
 }
 \f