[Profile] Add missing fflush in __llvm_profile_set_file_object

This commit is contained in:
Zequan Wu 2021-10-05 15:41:20 -07:00
parent bc72baa047
commit 4e8efff53e
1 changed files with 1 additions and 0 deletions

View File

@ -1173,6 +1173,7 @@ COMPILER_RT_VISIBILITY int __llvm_profile_set_file_object(FILE *File,
strerror(errno));
return 1;
}
fflush(File);
} else {
/* The merged profile has a non-zero length. Check that it is compatible
* with the data in this process. */