diff options
Diffstat (limited to 'gcc/data-streamer.h')
-rw-r--r-- | gcc/data-streamer.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/data-streamer.h b/gcc/data-streamer.h index dfca7abbd2c..c18779ba30a 100644 --- a/gcc/data-streamer.h +++ b/gcc/data-streamer.h @@ -183,8 +183,9 @@ streamer_write_char_stream (struct lto_output_stream *obs, char c) lto_append_block (obs); /* Write the actual character. */ - *obs->current_pointer = c; - obs->current_pointer++; + char *current_pointer = obs->current_pointer; + *(current_pointer++) = c; + obs->current_pointer = current_pointer; obs->total_size++; obs->left_in_block--; } |