diff options
author | Martin Jambor <mjambor@suse.cz> | 2014-11-14 01:22:28 +0100 |
---|---|---|
committer | Martin Jambor <jamborm@gcc.gnu.org> | 2014-11-14 01:22:28 +0100 |
commit | 6ff65dd7d59139e120d1dcdb54d5a5bb0d07e2c0 (patch) | |
tree | e6e110d0ed358b2d81ee2dfd2f67652dbc21d6c3 /gcc/ipa-devirt.c | |
parent | 453f025aa7a1746bd14875577402b1ae7f09ddbd (diff) | |
download | gcc-6ff65dd7d59139e120d1dcdb54d5a5bb0d07e2c0.zip gcc-6ff65dd7d59139e120d1dcdb54d5a5bb0d07e2c0.tar.gz gcc-6ff65dd7d59139e120d1dcdb54d5a5bb0d07e2c0.tar.bz2 |
cgraph.h (clear_outer_type): Make public.
2014-11-14 Martin Jambor <mjambor@suse.cz>
* cgraph.h (clear_outer_type): Make public. Fix comment.
* ipa-devirt.c (possible_polymorphic_call_targets): Use
clear_outer_type when resetting the context.
From-SVN: r217529
Diffstat (limited to 'gcc/ipa-devirt.c')
-rw-r--r-- | gcc/ipa-devirt.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gcc/ipa-devirt.c b/gcc/ipa-devirt.c index 32c6549..5e1f571 100644 --- a/gcc/ipa-devirt.c +++ b/gcc/ipa-devirt.c @@ -2281,10 +2281,7 @@ possible_polymorphic_call_targets (tree otr_type, /* Without outer type, we have no use for offset. Just do the basic search from innter type */ if (!context.outer_type) - { - context.outer_type = otr_type; - context.offset = 0; - } + context.clear_outer_type (otr_type); /* We need to update our hiearchy if the type does not exist. */ outer_type = get_odr_type (context.outer_type, true); /* If the type is complete, there are no derivations. */ |