aboutsummaryrefslogtreecommitdiff
path: root/gcc/ipa-devirt.c
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2014-02-07 07:01:36 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2014-02-07 06:01:36 +0000
commit6d6af792827fa779531662366b6dadad477a84dc (patch)
treeb04bcbc6defcf373da9011696d9ea84277a6be31 /gcc/ipa-devirt.c
parentddb3e20aaecd26afbce0025e1fef1a3144c65ce7 (diff)
downloadgcc-6d6af792827fa779531662366b6dadad477a84dc.zip
gcc-6d6af792827fa779531662366b6dadad477a84dc.tar.gz
gcc-6d6af792827fa779531662366b6dadad477a84dc.tar.bz2
re PR ipa/59918 (ICE in record_target_from_binfo, at ipa-devirt.c:693)
PR ipa/59918 * ipa-devirt.c (record_target_from_binfo): Remove overactive sanity check. * g++.dg/torture/pr59918.C: New testcase. From-SVN: r207592
Diffstat (limited to 'gcc/ipa-devirt.c')
-rw-r--r--gcc/ipa-devirt.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/gcc/ipa-devirt.c b/gcc/ipa-devirt.c
index c110a98..3341a5a 100644
--- a/gcc/ipa-devirt.c
+++ b/gcc/ipa-devirt.c
@@ -689,10 +689,7 @@ record_target_from_binfo (vec <cgraph_node *> &nodes,
we may not have its associated vtable. This is not a problem, since
we will walk it on the other path. */
if (!type_binfo)
- {
- gcc_assert (BINFO_VIRTUAL_P (binfo));
- return;
- }
+ return;
tree inner_binfo = get_binfo_at_offset (type_binfo,
offset, otr_type);
/* For types in anonymous namespace first check if the respective vtable