aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimple-fold.c
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2015-01-27 17:59:31 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2015-01-27 16:59:31 +0000
commitb833dedd61dac54df19512744772c6765c6d33a4 (patch)
tree3e002e77ee8eed2f26642b856fa34952144d14f8 /gcc/gimple-fold.c
parente24ca886a81b5754e75c734c6dc140fdf5524131 (diff)
downloadgcc-b833dedd61dac54df19512744772c6765c6d33a4.zip
gcc-b833dedd61dac54df19512744772c6765c6d33a4.tar.gz
gcc-b833dedd61dac54df19512744772c6765c6d33a4.tar.bz2
re PR ipa/64282 (ICE in gimple_get_virt_method_for_vtable, at gimple-fold.c:5635)
PR ipa/64282 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert on vtable being vtable. * g++.dg/torture/pr64282.C: New testcase. From-SVN: r220177
Diffstat (limited to 'gcc/gimple-fold.c')
-rw-r--r--gcc/gimple-fold.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/gcc/gimple-fold.c b/gcc/gimple-fold.c
index baec077..3015901 100644
--- a/gcc/gimple-fold.c
+++ b/gcc/gimple-fold.c
@@ -5649,7 +5649,6 @@ gimple_get_virt_method_for_vtable (HOST_WIDE_INT token,
if (TREE_CODE (v) != VAR_DECL
|| !DECL_VIRTUAL_P (v))
{
- gcc_assert (in_lto_p);
/* Pass down that we lost track of the target. */
if (can_refer)
*can_refer = false;