diff options
author | Jan Hubicka <jh@suse.cz> | 2010-05-15 22:48:58 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2010-05-15 20:48:58 +0000 |
commit | 9b3cf76aa1ee3383c1371f992fbdb2991e6e11d4 (patch) | |
tree | bac92573320331b8a3a6b4dc3b62266932f51d6f /gcc/ipa-prop.c | |
parent | 1f9109426d0b24206fd90c1b46f73bf9f5ee0685 (diff) | |
download | gcc-9b3cf76aa1ee3383c1371f992fbdb2991e6e11d4.zip gcc-9b3cf76aa1ee3383c1371f992fbdb2991e6e11d4.tar.gz gcc-9b3cf76aa1ee3383c1371f992fbdb2991e6e11d4.tar.bz2 |
ipa-prop.c (ipa_prop_read_section): Add sanity check that node is analyzed.
* ipa-prop.c (ipa_prop_read_section): Add sanity check that node is analyzed.
* passes.c (ipa_write_summaries): Write all analyzed nodes.
From-SVN: r159444
Diffstat (limited to 'gcc/ipa-prop.c')
-rw-r--r-- | gcc/ipa-prop.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/ipa-prop.c b/gcc/ipa-prop.c index d40fe44..3f80df0 100644 --- a/gcc/ipa-prop.c +++ b/gcc/ipa-prop.c @@ -2140,6 +2140,7 @@ ipa_prop_read_section (struct lto_file_decl_data *file_data, const char *data, index = lto_input_uleb128 (&ib_main); encoder = file_data->cgraph_node_encoder; node = lto_cgraph_encoder_deref (encoder, index); + gcc_assert (node->analyzed); ipa_read_node_info (&ib_main, node, data_in); } lto_free_section_data (file_data, LTO_section_jump_functions, NULL, data, |