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
This commit is contained in:
Jakub Jelinek 2008-09-17 23:26:45 +02:00 committed by Jakub Jelinek
parent c74147d2a9
commit 6847a7549c
2 changed files with 6 additions and 1 deletions

View 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

View 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);
}