Skip to content

Commit

Permalink
Fix LTO streamer checking (PR lto/77954).
Browse files Browse the repository at this point in the history
gcc/ChangeLog:

2017-05-02  Martin Liska  <mliska@suse.cz>

	PR lto/77954
	* tree-streamer-in.c (streamer_alloc_tree): Do not early return
	in order to apprize verifier with just created trees.
  • Loading branch information
marxin committed May 2, 2017
1 parent 95adf09 commit 978c7e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gcc/tree-streamer-in.c
Original file line number Diff line number Diff line change
Expand Up @@ -615,13 +615,13 @@ streamer_alloc_tree (struct lto_input_block *ib, struct data_in *data_in,
else if (code == CALL_EXPR)
{
unsigned HOST_WIDE_INT nargs = streamer_read_uhwi (ib);
return build_vl_exp (CALL_EXPR, nargs + 3);
result = build_vl_exp (CALL_EXPR, nargs + 3);
}
else if (code == OMP_CLAUSE)
{
enum omp_clause_code subcode
= (enum omp_clause_code) streamer_read_uhwi (ib);
return build_omp_clause (UNKNOWN_LOCATION, subcode);
result = build_omp_clause (UNKNOWN_LOCATION, subcode);
}
else
{
Expand Down

0 comments on commit 978c7e3

Please sign in to comment.