re PR rtl-optimization/77425 (Pointer test follows dereference in sched-int.h)

PR rtl-optimization/77425
	* ipa-devirt.c (get_odr_type): Set val->id unconditionally.

From-SVN: r239986
This commit is contained in:
Jakub Jelinek 2016-09-05 10:49:41 +02:00 committed by Jakub Jelinek
parent 6f1eb99962
commit 61f46d0e6d
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2016-09-05 Jakub Jelinek <jakub@redhat.com>
PR rtl-optimization/77425
* ipa-devirt.c (get_odr_type): Set val->id unconditionally.
2016-09-03 Kirill Yukhin <kirill.yukhin@intel.com>
* ubsan.c (ubsan_use_new_style_p): Fix check for empty string.

View File

@ -2136,8 +2136,7 @@ get_odr_type (tree type, bool insert)
/* Be sure we did not recorded any derived types; these may need
renumbering too. */
gcc_assert (val->derived_types.length() == 0);
if (odr_types_ptr)
val->id = odr_types.length ();
val->id = odr_types.length ();
vec_safe_push (odr_types_ptr, val);
}
return val;