diff options
author | Tobias Burnus <tobias@codesourcery.com> | 2020-05-26 18:24:28 +0200 |
---|---|---|
committer | Tobias Burnus <tobias@codesourcery.com> | 2020-05-26 18:25:29 +0200 |
commit | c5ab336ba106a407a67e84d8faac5b0ea6f18310 (patch) | |
tree | a9823059b2f3e40613c295c6d9bac6a6675ca0d0 /gcc/ipa-utils.h | |
parent | 519f2506456ffcf79782f7be21a8463d1776b16c (diff) | |
download | gcc-c5ab336ba106a407a67e84d8faac5b0ea6f18310.zip gcc-c5ab336ba106a407a67e84d8faac5b0ea6f18310.tar.gz gcc-c5ab336ba106a407a67e84d8faac5b0ea6f18310.tar.bz2 |
[LTO/offloading] Fix offloading-compilation ICE without -flto (PR84320)
gcc/ChangeLog:
PR ipa/95320
* ipa-utils.h (odr_type_p): Also permit calls with
only flag_generate_offload set.
Diffstat (limited to 'gcc/ipa-utils.h')
-rw-r--r-- | gcc/ipa-utils.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ipa-utils.h b/gcc/ipa-utils.h index 98edc38..d0ac3ec 100644 --- a/gcc/ipa-utils.h +++ b/gcc/ipa-utils.h @@ -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)); } |