aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2008-09-17 23:26:45 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2008-09-17 23:26:45 +0200
commit6847a7549cc909ebb292eeb6b549ca4faf013874 (patch)
treee39e43c7be501c2cc0625247a5fb19b24a38a54c
parentc74147d2a9aab35e6cc77d4111d3910bd462bd0d (diff)
downloadgcc-6847a7549cc909ebb292eeb6b549ca4faf013874.zip
gcc-6847a7549cc909ebb292eeb6b549ca4faf013874.tar.gz
gcc-6847a7549cc909ebb292eeb6b549ca4faf013874.tar.bz2
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
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/tree.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 814a79e..67c3c80 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/tree.c b/gcc/tree.c
index 71267bd..ab14286 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);
}