Flush gcda files before unlocking them

Summary: Fixes https://bugs.llvm.org/show_bug.cgi?id=35464.

Reviewers: zturner, rnk, void

Subscribers: sylvestre.ledru, llvm-commits, #sanitizers

Differential Revision: https://reviews.llvm.org/D40610

llvm-svn: 321702
This commit is contained in:
Marco Castelluccio 2018-01-03 11:13:45 +00:00
parent 65c766e1ed
commit ba3a619139
1 changed files with 1 additions and 0 deletions

View File

@ -459,6 +459,7 @@ void llvm_gcda_end_file() {
unmap_file();
}
fflush(output_file);
lprofUnlockFd(fd);
fclose(output_file);
output_file = NULL;