lto-section-in.c (lto_get_section_data): Fix const cast.

2014-03-04  Richard Biener  <rguenther@suse.de>

	* lto-section-in.c (lto_get_section_data): Fix const cast.

From-SVN: r208315
This commit is contained in:
Richard Biener 2014-03-04 12:52:13 +00:00 committed by Richard Biener
parent 3740bda665
commit 3c24e842c1
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2014-03-04 Richard Biener <rguenther@suse.de>
* lto-section-in.c (lto_get_section_data): Fix const cast.
2014-03-04 Paulo Matos <paulo@matos-sorge.com>
* tree-streamer.c (record_common_node): Assert we don't record

View File

@ -174,8 +174,8 @@ lto_get_section_data (struct lto_file_decl_data *file_data,
data = buffer.data + header_length;
}
lto_check_version (((lto_header *)data)->major_version,
((lto_header *)data)->minor_version);
lto_check_version (((const lto_header *)data)->major_version,
((const lto_header *)data)->minor_version);
return data;
}