Commit 61f46d0e by Jakub Jelinek Committed by Jakub Jelinek

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
parent 6f1eb999
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> 2016-09-03 Kirill Yukhin <kirill.yukhin@intel.com>
* ubsan.c (ubsan_use_new_style_p): Fix check for empty string. * ubsan.c (ubsan_use_new_style_p): Fix check for empty string.
......
...@@ -2136,8 +2136,7 @@ get_odr_type (tree type, bool insert) ...@@ -2136,8 +2136,7 @@ get_odr_type (tree type, bool insert)
/* Be sure we did not recorded any derived types; these may need /* Be sure we did not recorded any derived types; these may need
renumbering too. */ renumbering too. */
gcc_assert (val->derived_types.length() == 0); 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); vec_safe_push (odr_types_ptr, val);
} }
return val; return val;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment