mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-10 08:00:28 +08:00
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:
parent
c74147d2a9
commit
6847a7549c
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user