aboutsummaryrefslogtreecommitdiff
path: root/gcc/ipa-polymorphic-call.c
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2014-09-27 02:19:06 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2014-09-27 00:19:06 +0000
commitec1d732bc6e08ede9c33029347d0568ca310531f (patch)
tree7fa13bcb0d321647fa8ad89c27ffffe9bde8fe46 /gcc/ipa-polymorphic-call.c
parentee5bd6c8fd290b4fcb4ceeb79eb5361780ecf19b (diff)
downloadgcc-ec1d732bc6e08ede9c33029347d0568ca310531f.zip
gcc-ec1d732bc6e08ede9c33029347d0568ca310531f.tar.gz
gcc-ec1d732bc6e08ede9c33029347d0568ca310531f.tar.bz2
re PR ipa/62121 (ICE: Segmentation fault in ipa-devirt.c:997)
PR ipa/62121 * ipa-polymorphic-call.c (ipa_polymorphic_call_context::restrict_to_inner_class): fix pasto in checking array size. * g++.dg/torture/pr62121.C: New testcase. From-SVN: r215655
Diffstat (limited to 'gcc/ipa-polymorphic-call.c')
-rw-r--r--gcc/ipa-polymorphic-call.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ipa-polymorphic-call.c b/gcc/ipa-polymorphic-call.c
index 23f14ac60..e682b2b4 100644
--- a/gcc/ipa-polymorphic-call.c
+++ b/gcc/ipa-polymorphic-call.c
@@ -327,7 +327,7 @@ ipa_polymorphic_call_context::restrict_to_inner_class (tree expected_type)
&& (cur_offset
+ (expected_type ? tree_to_uhwi (TYPE_SIZE (expected_type))
: 0)
- > tree_to_uhwi (TYPE_SIZE (type))))
+ > tree_to_uhwi (TYPE_SIZE (subtype))))
goto no_useful_type_info;
cur_offset = new_offset;