forked from OSchip/llvm-project
[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:
parent
f4556f634f
commit
dd4d2ac607
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue