[compiler-rt] 8cee818 - [Profile] Fix 98dec28458172091893e46040d7b5ab745a44b82
Zequan Wu via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 4 11:24:56 PDT 2023
Author: Zequan Wu
Date: 2023-08-04T14:24:45-04:00
New Revision: 8cee8183d4c17d692cacec66612eedbb983d4294
URL: https://github.com/llvm/llvm-project/commit/8cee8183d4c17d692cacec66612eedbb983d4294
DIFF: https://github.com/llvm/llvm-project/commit/8cee8183d4c17d692cacec66612eedbb983d4294.diff
LOG: [Profile] Fix 98dec28458172091893e46040d7b5ab745a44b82
Added:
Modified:
compiler-rt/lib/profile/InstrProfilingFile.c
Removed:
################################################################################
diff --git a/compiler-rt/lib/profile/InstrProfilingFile.c b/compiler-rt/lib/profile/InstrProfilingFile.c
index fa71c3fc8f717a..5556eccbf57879 100644
--- a/compiler-rt/lib/profile/InstrProfilingFile.c
+++ b/compiler-rt/lib/profile/InstrProfilingFile.c
@@ -483,10 +483,10 @@ static int writeFile(const char *OutputName) {
if (OutputFile == getProfileFile()) {
fflush(OutputFile);
- } else {
if (doMerging() && !__llvm_profile_is_continuous_mode_enabled()) {
lprofUnlockFileHandle(OutputFile);
}
+ } else {
fclose(OutputFile);
}
More information about the llvm-commits
mailing list