Commit 3c24e842 by Richard Biener Committed by Richard Biener

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
parent 3740bda6
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> 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
* tree-streamer.c (record_common_node): Assert we don't record * tree-streamer.c (record_common_node): Assert we don't record
......
...@@ -174,8 +174,8 @@ lto_get_section_data (struct lto_file_decl_data *file_data, ...@@ -174,8 +174,8 @@ lto_get_section_data (struct lto_file_decl_data *file_data,
data = buffer.data + header_length; data = buffer.data + header_length;
} }
lto_check_version (((lto_header *)data)->major_version, lto_check_version (((const lto_header *)data)->major_version,
((lto_header *)data)->minor_version); ((const lto_header *)data)->minor_version);
return data; return data;
} }
......
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