]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/ipa-utils.h
[LTO/offloading] Fix offloading-compilation ICE without -flto (PR84320)
[thirdparty/gcc.git] / gcc / ipa-utils.h
index 98edc383461a107f3ef85debe209dd2198bbbb4b..d0ac3ec86f862f4193c068c3963722e1e8902b0e 100644 (file)
@@ -243,7 +243,7 @@ odr_type_p (const_tree t)
 {
   /* 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));
 }