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.
parent 6ff7efb7
2020-01-15 Martin Liska <mliska@suse.cz>
* ipa-profile.c (ipa_profile_read_edge_summary): Do not allow
2 calls of streamer_read_hwi in a function call.
2020-01-15 Richard Biener <rguenther@suse.de> 2020-01-15 Richard Biener <rguenther@suse.de>
* alias.c (record_alias_subset): Avoid redundant work when * alias.c (record_alias_subset): Avoid redundant work when
......
...@@ -451,8 +451,9 @@ ipa_profile_read_edge_summary (class lto_input_block *ib, cgraph_edge *edge) ...@@ -451,8 +451,9 @@ ipa_profile_read_edge_summary (class lto_input_block *ib, cgraph_edge *edge)
for (i = 0; i < len; i++) for (i = 0; i < len; i++)
{ {
speculative_call_target item (streamer_read_hwi (ib), unsigned int target_id = streamer_read_hwi (ib);
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); csum->speculative_call_targets.safe_push (item);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment