diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-09-17 15:46:06 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-09-17 15:46:06 +0000 |
commit | 460140a500a541fa4d0978b741bb19cf13859a83 (patch) | |
tree | 114983054e860912f00de7bb086f99457a71972c /gcc/ipa.c | |
parent | f1ff006725799ca277daadc6500e19561561169d (diff) | |
download | gcc-460140a500a541fa4d0978b741bb19cf13859a83.tar.gz |
PR middle-end/58329
* ipa-devirt.c (ipa_devirt): Be ready for symtab_nonoverwritable_alias
to return NULL.
* ipa.c (function_and_variable_visibility): Likewise.
* ipa-profile.c (ipa_profile): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@202657 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ipa.c')
-rw-r--r-- | gcc/ipa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ipa.c b/gcc/ipa.c index 91d63eb9f85..67b3bc0f07c 100644 --- a/gcc/ipa.c +++ b/gcc/ipa.c @@ -998,7 +998,7 @@ function_and_variable_visibility (bool whole_program) { struct cgraph_node *alias = cgraph (symtab_nonoverwritable_alias ((symtab_node) node)); - if (alias != node) + if (alias && alias != node) { while (node->callers) { |