File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
test/profile/ContinuousSyncMode Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -668,7 +668,8 @@ static void initializeProfileForContinuousMode(void) {
668
668
FileOffsetToCounters );
669
669
}
670
670
671
- unlockProfile (& ProfileRequiresUnlock , File );
671
+ if (ProfileRequiresUnlock )
672
+ unlockProfile (& ProfileRequiresUnlock , File );
672
673
#endif // defined(__Fuchsia__) || defined(_WIN32)
673
674
}
674
675
Original file line number Diff line number Diff line change 5
5
// RUN: %clang_pgogen -dynamiclib -o %t.dso1.dylib %t.dso1.c
6
6
// RUN: %clang_pgogen -dynamiclib -o %t.dso2.dylib %t.dso2.c
7
7
// RUN: %clang_pgogen -o %t.exe %s %t.dso1.dylib %t.dso2.dylib
8
- // RUN: env LLVM_PROFILE_FILE="%c%t.profraw" %run %t.exe
8
+ // RUN: env LLVM_PROFILE_FILE="%c%t.profraw" %run %t.exe 2>&1 | count 0
9
9
// RUN: llvm-profdata show --counts --all-functions %t.profraw | FileCheck %s
10
10
11
11
// CHECK-LABEL: Counters:
You can’t perform that action at this time.
0 commit comments