re PR middle-end/35545 (tracer pass is run too late)

PR middle-end/35535
	* tree-vrp.c (extract_range_from_unary_expr_1): Handle OBJ_TYPE_REF.

From-SVN: r206073
This commit is contained in:
Jan Hubicka 2013-12-18 00:41:41 +01:00 committed by Jan Hubicka
parent 91af97c394
commit a4fff37a46
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2013-12-17 Jan Hubicka <hubicka@ucw.cz>
PR middle-end/35535
* tree-vrp.c (extract_range_from_unary_expr_1): Handle OBJ_TYPE_REF.
2013-12-17 Teresa Johnson <tejohnson@google.com>
PR gcov-profile/59527

View File

@ -3202,9 +3202,9 @@ extract_range_from_unary_expr_1 (value_range_t *vr,
}
/* Handle operations that we express in terms of others. */
if (code == PAREN_EXPR)
if (code == PAREN_EXPR || code == OBJ_TYPE_REF)
{
/* PAREN_EXPR is a simple copy. */
/* PAREN_EXPR and OBJ_TYPE_REF are simple copies. */
copy_value_range (vr, &vr0);
return;
}