diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-12-09 19:40:10 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-12-09 19:40:10 +0000 |
commit | 58da8146e0e39e5b337a0f8b0a19538efd7d699f (patch) | |
tree | 410d9638982b7e45c8fcee215281d3e4081516e6 /gcc/ipa-visibility.c | |
parent | 24199c3f8e15a0cdae309003c00c6255dbd19a09 (diff) | |
download | gcc-58da8146e0e39e5b337a0f8b0a19538efd7d699f.tar.gz |
PR ipa/61886
* ipa-visibility.c (function_and_variable_visibility): Fix vtable
rewritting guard.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@231474 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ipa-visibility.c')
-rw-r--r-- | gcc/ipa-visibility.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ipa-visibility.c b/gcc/ipa-visibility.c index 5b03159197c..7ce8266c466 100644 --- a/gcc/ipa-visibility.c +++ b/gcc/ipa-visibility.c @@ -720,7 +720,7 @@ function_and_variable_visibility (bool whole_program) bool found = false; /* See if there is something to update. */ - for (i = 0; vnode->iterate_referring (i, ref); i++) + for (i = 0; vnode->iterate_reference (i, ref); i++) if (ref->use == IPA_REF_ADDR && can_replace_by_local_alias_in_vtable (ref->referred)) { |