* tree-dfa.c (dump_variable): Guard against NULL annotations.

From-SVN: r104233
This commit is contained in:
Diego Novillo 2005-09-13 16:05:37 +00:00 committed by Diego Novillo
parent 587817d094
commit 5681f1ab03
2 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2005-09-13 Diego Novillo <dnovillo@redhat.com>
* tree-dfa.c (dump_variable): Guard against NULL annotations.
2005-09-13 Zdenek Dvorak <dvorakz@suse.cz>
PR tree-optimize/23817

View File

@ -314,13 +314,13 @@ dump_variable (FILE *file, tree var)
fprintf (file, ", ");
print_generic_expr (file, TREE_TYPE (var), dump_flags);
if (ann->type_mem_tag)
if (ann && ann->type_mem_tag)
{
fprintf (file, ", type memory tag: ");
print_generic_expr (file, ann->type_mem_tag, dump_flags);
}
if (ann->is_alias_tag)
if (ann && ann->is_alias_tag)
fprintf (file, ", is an alias tag");
if (TREE_ADDRESSABLE (var))
@ -341,7 +341,7 @@ dump_variable (FILE *file, tree var)
print_generic_expr (file, default_def (var), dump_flags);
}
if (ann->may_aliases)
if (may_aliases (var))
{
fprintf (file, ", may aliases: ");
dump_may_aliases_for (file, var);