diff options
author | Martin Liska <mliska@suse.cz> | 2020-01-15 13:34:20 +0100 |
---|---|---|
committer | Martin Liska <mliska@suse.cz> | 2020-01-15 13:34:20 +0100 |
commit | 84a3effa1a22f46a145f373461eaccf0d4585587 (patch) | |
tree | f839dac195d6ec5a95f360988c95af0dfc544e78 /gcc/ipa-profile.c | |
parent | 6ff7efb7375c3ef75c79eb6507d6768b80bb6d69 (diff) | |
download | gcc-84a3effa1a22f46a145f373461eaccf0d4585587.zip gcc-84a3effa1a22f46a145f373461eaccf0d4585587.tar.gz gcc-84a3effa1a22f46a145f373461eaccf0d4585587.tar.bz2 |
Do not call streamer_read_hwi in a function call.
* ipa-profile.c (ipa_profile_read_edge_summary): Do not allow
2 calls of streamer_read_hwi in a function call.
Diffstat (limited to 'gcc/ipa-profile.c')
-rw-r--r-- | gcc/ipa-profile.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/ipa-profile.c b/gcc/ipa-profile.c index fc231c9..03272f2 100644 --- a/gcc/ipa-profile.c +++ b/gcc/ipa-profile.c @@ -451,8 +451,9 @@ ipa_profile_read_edge_summary (class lto_input_block *ib, cgraph_edge *edge) for (i = 0; i < len; i++) { - speculative_call_target item (streamer_read_hwi (ib), - streamer_read_hwi (ib)); + unsigned int target_id = streamer_read_hwi (ib); + int target_probability = streamer_read_hwi (ib); + speculative_call_target item (target_id, target_probability); csum->speculative_call_targets.safe_push (item); } } |