aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@gcc.gnu.org>2014-09-25 02:11:13 +0000
committerJan Hubicka <hubicka@gcc.gnu.org>2014-09-25 02:11:13 +0000
commit00d31d5e9fb1d309347ede4561f9165e59aa7f77 (patch)
treeb070eb46856db6d6504f3e1b09f01ad6cf772acc /gcc
parentba3923391e896c0efdfcd49eb0334525ed8bd2c0 (diff)
downloadgcc-00d31d5e9fb1d309347ede4561f9165e59aa7f77.zip
gcc-00d31d5e9fb1d309347ede4561f9165e59aa7f77.tar.gz
gcc-00d31d5e9fb1d309347ede4561f9165e59aa7f77.tar.bz2
Fix previous commit.
From-SVN: r215576
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ipa-devirt.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/gcc/ipa-devirt.c b/gcc/ipa-devirt.c
index 954cd54..bc94a79 100644
--- a/gcc/ipa-devirt.c
+++ b/gcc/ipa-devirt.c
@@ -2057,14 +2057,15 @@ ipa_polymorphic_call_context::restrict_to_inner_class (tree expected_type)
tree type = outer_type;
HOST_WIDE_INT cur_offset = offset;
bool speculative = false;
+ bool size_unknown = false;
- /* Update OUTER_TYPE to match EXPECTED_TYPE if it is not set. */
- if (!outer_type)
- {
- clear_outer_type (expected_type);
- type = expected_type;
- cur_offset = 0;
- }
+ /* Update OUTER_TYPE to match EXPECTED_TYPE if it is not set. */
+ if (!outer_type)
+ {
+ clear_outer_type (expected_type);
+ type = expected_type;
+ cur_offset = 0;
+ }
/* See if OFFSET points inside OUTER_TYPE. If it does not, we know
that the context is either invalid, or the instance type must be
derived from OUTER_TYPE.
@@ -2133,7 +2134,6 @@ ipa_polymorphic_call_context::restrict_to_inner_class (tree expected_type)
{
HOST_WIDE_INT pos, size;
tree fld;
- bool size_unknown;
/* If we do not know size of TYPE, we need to be more conservative
about accepting cases where we can not find EXPECTED_TYPE.