gcc/ChangeLog:
PR ipa/95320
* ipa-utils.h (odr_type_p): Also permit calls with
only flag_generate_offload set.
{
/* We do not have this information when not in LTO, but we do not need
to care, since it is used only for type merging. */
- gcc_checking_assert (in_lto_p || flag_lto);
+ gcc_checking_assert (in_lto_p || flag_lto || flag_generate_offload);
return TYPE_NAME (t) && TREE_CODE (TYPE_NAME (t)) == TYPE_DECL
&& DECL_ASSEMBLER_NAME_SET_P (TYPE_NAME (t));
}