[gcov] Fix fallout from r336693

Fix building GCDAProfiling.c with pre-C99 compilers.
This caused a build bot failure.

llvm-svn: 336706
This commit is contained in:
Ulrich Weigand 2018-07-10 17:08:05 +00:00
parent f4556f634f
commit dd4d2ac607
1 changed files with 2 additions and 1 deletions

View File

@ -210,11 +210,12 @@ static uint32_t read_32bit_value() {
static uint32_t read_le_32bit_value() {
uint32_t val = 0;
int i;
if (new_file)
return (uint32_t)-1;
for (int i = 0; i < 4; i++)
for (i = 0; i < 4; i++)
val |= write_buffer[cur_pos++] << (8*i);
return val;
}